Skip to content

Commit

Permalink
refactor: lifting the filter provider up
Browse files Browse the repository at this point in the history
close #3313
  • Loading branch information
hamed-musallam committed Jan 2, 2025
1 parent d0ca68d commit 2b37f79
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/component/main/InnerNMRiumContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ export function InnerNMRiumContents(props: InnerNMRiumContentsProps) {
onContextMenu={preventContextMenuHandler}
style={{ height: '100%', width: '100%' }}
>
<DropZone>
<div
style={{
display: 'flex',
flexDirection: 'column',
backgroundColor: 'white',
width: '100%',
}}
>
<FilterSyncOptionsProvider>
<FilterSyncOptionsProvider>
<DropZone>
<div
style={{
display: 'flex',
flexDirection: 'column',
backgroundColor: 'white',
width: '100%',
}}
>
<Header />
<div
style={{
Expand Down Expand Up @@ -174,16 +174,16 @@ export function InnerNMRiumContents(props: InnerNMRiumContentsProps) {
}}
/>
</div>
</FilterSyncOptionsProvider>
</div>
</DropZone>
<div />
<PrintWrapper>
<NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />
</PrintWrapper>
<ExportManagerController>
<NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />
</ExportManagerController>
</div>
</DropZone>
<div />
<PrintWrapper>
<NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />
</PrintWrapper>
<ExportManagerController>
<NMRiumViewer emptyText={emptyText} viewerRef={viewerRef} />
</ExportManagerController>
</FilterSyncOptionsProvider>
</div>
</>
);
Expand Down

0 comments on commit 2b37f79

Please sign in to comment.