database widget

This commit is contained in:
Jan Prochazka
2020-01-01 09:39:49 +01:00
parent 30af732820
commit 0dba0d3a68
3 changed files with 20 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import styled from 'styled-components';
import FilesTabsPanel from './FilesTabsPanel';
import WidgetIconPanel from './widgets/WidgetIconPanel';
import useCurrentWidget from './widgets/useCurrentWidget';
import WidgetContainer from './widgets/WidgetContainer';
const BodyDiv = styled.div`
position: fixed;
@@ -59,7 +60,11 @@ export default function Screen({ children }) {
<IconBar>
<WidgetIconPanel />
</IconBar>
{!!currentWidget && <LeftPanel></LeftPanel>}
{!!currentWidget && (
<LeftPanel>
<WidgetContainer />
</LeftPanel>
)}
<TabsPanel leftPanelWidth={leftPanelWidth}>
<FilesTabsPanel></FilesTabsPanel>
</TabsPanel>