Skip to content

Commit

Permalink
feat: add info panel to app (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
wadjih-bencheikh18 authored Oct 31, 2022
1 parent e76a9db commit 110a25a
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import {
} from 'react-icons/fa';
import { KbsProvider, useKbsGlobal } from 'react-kbs';

import { MeasurementExplorer, MeasurementsPanel } from './components';
import {
MeasurementExplorer,
MeasurementInfoPanel,
MeasurementsPanel,
} from './components';
import {
AppStateProvider,
useAppDispatch,
Expand All @@ -27,8 +31,6 @@ import {
Header,
RootLayout,
SplitPane,
TabItem,
Tabs,
Toolbar,
} from '@/components';
import {
Expand Down Expand Up @@ -69,17 +71,7 @@ function DropZoneArea() {
return searchParams.get('filelist');
}, []);
const { toggle } = useFullscreen();
const items: Array<TabItem> = [
{
id: '1h',
title: '1H',
content:
'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem odit nulla delectus rem et non quis animi molestias pariatur tempora. Corporis consequuntur asperiores odio officia minima fugiat, corrupti hic illum!',
},
{ id: '13c', title: '13C', content: 'Hello, World! [b]' },
{ id: '1h,1h', title: '1H,1H', content: 'Hello, World! [c]' },
{ id: '1h,13c', title: '1H,13C', content: 'Hello, World! [d]' },
];

function saveHandler(filename = 'file', spaceIndent = 0) {
const data = JSON.stringify(
{ data: appState.data, view: appState.view },
Expand Down Expand Up @@ -243,19 +235,10 @@ function DropZoneArea() {
/>
</div>
</Accordion.Item>
<Accordion.Item title="Integral">
<div
style={{
flex: '1 1 0%',
width: '100%',
}}
>
<Tabs
orientation="horizontal"
items={items}
opened={items[0]}
/>
</div>
<Accordion.Item title="Info Panel">
{measurement && (
<MeasurementInfoPanel measurement={measurement} />
)}
</Accordion.Item>
</Accordion>
</div>
Expand Down

0 comments on commit 110a25a

Please sign in to comment.