From 9b6b6f368c89f45d596e03765b8fde8ed9063f68 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 24 Mar 2022 01:56:28 -0500 Subject: [PATCH] refactor: aliases ^_^ --- packages/core/src/components/persea/index.jsx | 5 ++--- packages/core/src/components/persea/resource/index.jsx | 7 +++---- packages/core/src/components/persea/sidebar/index.jsx | 2 +- packages/core/src/sidebar/organization/content.jsx | 3 +-- .../core/src/sidebar/organization/organization/index.jsx | 9 ++++----- packages/core/src/sidebar/projects/content.jsx | 3 +-- 6 files changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/core/src/components/persea/index.jsx b/packages/core/src/components/persea/index.jsx index c0d0bc8..3c44790 100644 --- a/packages/core/src/components/persea/index.jsx +++ b/packages/core/src/components/persea/index.jsx @@ -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'; diff --git a/packages/core/src/components/persea/resource/index.jsx b/packages/core/src/components/persea/resource/index.jsx index c46f98b..8524705 100644 --- a/packages/core/src/components/persea/resource/index.jsx +++ b/packages/core/src/components/persea/resource/index.jsx @@ -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}) { diff --git a/packages/core/src/components/persea/sidebar/index.jsx b/packages/core/src/components/persea/sidebar/index.jsx index b5fbcc4..b42b5f4 100644 --- a/packages/core/src/components/persea/sidebar/index.jsx +++ b/packages/core/src/components/persea/sidebar/index.jsx @@ -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'; diff --git a/packages/core/src/sidebar/organization/content.jsx b/packages/core/src/sidebar/organization/content.jsx index cd990de..4ffb6ea 100644 --- a/packages/core/src/sidebar/organization/content.jsx +++ b/packages/core/src/sidebar/organization/content.jsx @@ -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() { diff --git a/packages/core/src/sidebar/organization/organization/index.jsx b/packages/core/src/sidebar/organization/organization/index.jsx index 6132a7f..8a43103 100644 --- a/packages/core/src/sidebar/organization/organization/index.jsx +++ b/packages/core/src/sidebar/organization/organization/index.jsx @@ -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 diff --git a/packages/core/src/sidebar/projects/content.jsx b/packages/core/src/sidebar/projects/content.jsx index 4027c55..e4f2879 100644 --- a/packages/core/src/sidebar/projects/content.jsx +++ b/packages/core/src/sidebar/projects/content.jsx @@ -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);