diff --git a/packages/core/package.json b/packages/core/package.json index 38db86d..53e771b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -17,8 +17,6 @@ "files": [ "assets", "build", - "client.js", - "client.js.map", "index.css", "index.css.map", "index.js", diff --git a/packages/core/src/client.js b/packages/core/src/client.js deleted file mode 100644 index aa607f2..0000000 --- a/packages/core/src/client.js +++ /dev/null @@ -1,9 +0,0 @@ -import {Hooks} from '@flecks/core'; - -import Persea from './components/persea'; - -export default { - [Hooks]: { - '@flecks/react.roots': () => Persea, - }, -}; diff --git a/packages/core/src/components/project/organization/index.jsx b/packages/core/src/components/project/organization/index.jsx index 35b6e96..5ce83e9 100644 --- a/packages/core/src/components/project/organization/index.jsx +++ b/packages/core/src/components/project/organization/index.jsx @@ -20,6 +20,10 @@ import { import OrganizationActions from './actions'; import './index.scss'; +const normalizeDisplayName = (displayName) => ( + displayName.startsWith('HotExported') ? displayName.slice(11) : displayName +); + const Organization = ({ className, label, @@ -29,11 +33,7 @@ const Organization = ({ const dispatch = useDispatch(); const flecks = useFlecks(); const location = useLocation(); - const [collapsed, __setCollapsed] = useState(JSON.parse(window.localStorage['@persea/core/explorer'] || '{}')); - const setCollapsed = (next) => { - window.localStorage['@persea/core/explorer'] = JSON.stringify(next); - __setCollapsed(next); - }; + const [collapsed, setCollapsed] = useState({}); const treeFromResourcePath = (tree, uuid, [isFile, resourcePath]) => { const parts = resourcePath.split('/'); parts.shift(); @@ -100,7 +100,7 @@ const Organization = ({ .Component; return (