pl-fe: change import alias so it won't change on each project rename
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import clsx from 'clsx';
|
||||
import React, { useEffect } from 'react';
|
||||
|
||||
import InlineStyle from 'pl-fe/components/inline-style';
|
||||
import { useLocale, useLocaleDirection } from 'pl-fe/hooks/use-locale';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
import { useTheme } from 'pl-fe/hooks/use-theme';
|
||||
import { useThemeCss } from 'pl-fe/hooks/use-theme-css';
|
||||
import { startSentry } from 'pl-fe/sentry';
|
||||
import { useHasModals } from 'pl-fe/stores/modals';
|
||||
import { useSettings } from 'pl-fe/stores/settings';
|
||||
import InlineStyle from '@/components/inline-style';
|
||||
import { useLocale, useLocaleDirection } from '@/hooks/use-locale';
|
||||
import { usePlFeConfig } from '@/hooks/use-pl-fe-config';
|
||||
import { useTheme } from '@/hooks/use-theme';
|
||||
import { useThemeCss } from '@/hooks/use-theme-css';
|
||||
import { startSentry } from '@/sentry';
|
||||
import { useHasModals } from '@/stores/modals';
|
||||
import { useSettings } from '@/stores/settings';
|
||||
|
||||
const Helmet = React.lazy(() => import('pl-fe/components/helmet'));
|
||||
const Helmet = React.lazy(() => import('@/components/helmet'));
|
||||
|
||||
/** Injects metadata into site head with Helmet. */
|
||||
const PlFeHead = () => {
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { IntlProvider } from 'react-intl';
|
||||
|
||||
import { checkIfStandalone, fetchInstance } from 'pl-fe/actions/instance';
|
||||
import { fetchMe } from 'pl-fe/actions/me';
|
||||
import { loadPlFeConfig } from 'pl-fe/actions/pl-fe';
|
||||
import LoadingScreen from 'pl-fe/components/loading-screen';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useLocale } from 'pl-fe/hooks/use-locale';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/use-own-account';
|
||||
import MESSAGES from 'pl-fe/messages';
|
||||
import { checkIfStandalone, fetchInstance } from '@/actions/instance';
|
||||
import { fetchMe } from '@/actions/me';
|
||||
import { loadPlFeConfig } from '@/actions/pl-fe';
|
||||
import LoadingScreen from '@/components/loading-screen';
|
||||
import { useAppDispatch } from '@/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from '@/hooks/use-app-selector';
|
||||
import { useLocale } from '@/hooks/use-locale';
|
||||
import { useOwnAccount } from '@/hooks/use-own-account';
|
||||
import MESSAGES from '@/messages';
|
||||
|
||||
import type { AppDispatch } from 'pl-fe/store';
|
||||
import type { AppDispatch } from '@/store';
|
||||
|
||||
/** Load initial data from the backend */
|
||||
const loadInitial = () => async(dispatch: AppDispatch) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { Suspense } from 'react';
|
||||
|
||||
import LoadingScreen from 'pl-fe/components/loading-screen';
|
||||
import { RouterWithContext } from 'pl-fe/features/ui/router';
|
||||
import LoadingScreen from '@/components/loading-screen';
|
||||
import { RouterWithContext } from '@/features/ui/router';
|
||||
|
||||
/** Highest level node with the Redux store. */
|
||||
const PlFeMount = () => {
|
||||
|
||||
@@ -3,8 +3,8 @@ import React from 'react';
|
||||
import { HelmetProvider } from 'react-helmet-async';
|
||||
import { Provider } from 'react-redux';
|
||||
|
||||
import { StatProvider } from 'pl-fe/contexts/stat-context';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
import { StatProvider } from '@/contexts/stat-context';
|
||||
import { queryClient } from '@/queries/client';
|
||||
|
||||
import { preload } from '../actions/preload';
|
||||
import { store } from '../store';
|
||||
|
||||
Reference in New Issue
Block a user