chore: tidy
This commit is contained in:
parent
6c1e339e17
commit
75368d267e
|
@ -3,7 +3,7 @@ import './app.scss';
|
||||||
import {hot} from 'react-hot-loader';
|
import {hot} from 'react-hot-loader';
|
||||||
|
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import React, {useState} from 'react';
|
import React from 'react';
|
||||||
import {useSelector} from 'react-redux';
|
import {useSelector} from 'react-redux';
|
||||||
|
|
||||||
import TypeRenderersContext from './context/typeRenderers';
|
import TypeRenderersContext from './context/typeRenderers';
|
||||||
|
@ -24,14 +24,13 @@ const typeRenderMap = () => Object.values(allTypeRenderers()).reduce((r, M) => {
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const [typeRenderers] = useState(typeRenderMap());
|
|
||||||
const activeResourceUri = useSelector(activeResourceUriSelector);
|
const activeResourceUri = useSelector(activeResourceUriSelector);
|
||||||
const activeSidebarIndex = useSelector(activeSidebarIndexSelector);
|
const activeSidebarIndex = useSelector(activeSidebarIndexSelector);
|
||||||
const isSidebarExpanded = useSelector(isSidebarExpandedSelector);
|
const isSidebarExpanded = useSelector(isSidebarExpandedSelector);
|
||||||
const resourceUris = useSelector(resourceUrisSelector);
|
const resourceUris = useSelector(resourceUrisSelector);
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<div className="app">
|
||||||
<TypeRenderersContext.Provider value={typeRenderers}>
|
<TypeRenderersContext.Provider value={typeRenderMap()}>
|
||||||
<div className="panes horizontal">
|
<div className="panes horizontal">
|
||||||
<div
|
<div
|
||||||
className="sidebar-icons-wrapper pane"
|
className="sidebar-icons-wrapper pane"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user