refactor: aliases ^_^
This commit is contained in:
parent
a4e3bb889f
commit
9b6b6f368c
|
@ -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';
|
||||
|
||||
|
|
|
@ -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}) {
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user