refactor: aliases ^_^

This commit is contained in:
cha0s 2022-03-24 01:56:28 -05:00
parent a4e3bb889f
commit 9b6b6f368c
6 changed files with 12 additions and 17 deletions

View File

@ -2,11 +2,10 @@ import {
React,
hot,
} from '@flecks/react';
import useLocalStorage from '@persea/core/hooks/use-local-storage';
import './global.scss';
import styles from './index.module.scss';
import useLocalStorage from '../../hooks/use-local-storage';
import './global.scss';
import Resource from './resource';
import Sidebar from './sidebar';

View File

@ -10,9 +10,6 @@ import {Context, Resource as ResourceComponent} from '@avocado/resource-persea';
import {classnames, PropTypes, React} from '@flecks/react';
import {useDispatch, useSelector} from '@flecks/redux';
import {userIdSelector} from '@flecks/user';
import styles from './index.module.scss';
import {
closeResource,
currentResourceSelector,
@ -22,7 +19,9 @@ import {
projectsSelector,
projectResourceSelector,
setCurrentResource,
} from '../../../state';
} from '@persea/core/state';
import styles from './index.module.scss';
import Login from './login';
function Resource({expanded}) {

View File

@ -4,10 +4,10 @@ import {
React,
useFlecks,
} from '@flecks/react';
import useLocalStorage from '@persea/core/hooks/use-local-storage';
import styles from './index.module.scss';
import useLocalStorage from '../../../hooks/use-local-storage';
import ContentComponent from './content';
import IconComponent from './icon';
import IconsComponent from './icons';

View File

@ -1,9 +1,8 @@
import {React} from '@flecks/react';
import {useSelector} from '@flecks/redux';
import {projectSelector, structureSelector} from '@persea/core/state';
import styles from './content.module.scss';
import {projectSelector, structureSelector} from '../../state';
import Organization from './organization';
function Content() {

View File

@ -12,15 +12,14 @@ import {
useDispatch,
useSelector,
} from '@flecks/redux';
import './index.scss';
import useLocalStorage from '../../../hooks/use-local-storage';
import useLocalStorage from '@persea/core/hooks/use-local-storage';
import {
currentResourceSelector,
setCurrentResource,
} from '../../../state';
} from '@persea/core/state';
import OrganizationActions from './actions';
import './index.scss';
const normalizeDisplayName = (displayName) => (
displayName.startsWith('HotExported') ? displayName.slice(11) : displayName

View File

@ -1,10 +1,9 @@
import {React} from '@flecks/react';
import {useSelector} from '@flecks/redux';
import {projectSelector, projectsSelector} from '@persea/core/state';
import styles from './content.module.scss';
import {projectSelector, projectsSelector} from '../../state';
function Content() {
const project = useSelector(projectSelector);
const {structure} = useSelector(projectsSelector);