mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-02 10:18:42 +00:00
Add basic tab group for switching notes
This commit is contained in:
@@ -17,7 +17,7 @@ import '@blocknote/core/fonts/inter.css';
|
|||||||
import { BlockNoteView } from '@blocknote/mantine';
|
import { BlockNoteView } from '@blocknote/mantine';
|
||||||
import '@blocknote/mantine/style.css';
|
import '@blocknote/mantine/style.css';
|
||||||
import { useCreateBlockNote } from '@blocknote/react';
|
import { useCreateBlockNote } from '@blocknote/react';
|
||||||
import { Paper } from '@mantine/core';
|
import { Box, Flex, Paper, Tabs } from '@mantine/core';
|
||||||
import { useUserState } from '../../states/UserState';
|
import { useUserState } from '../../states/UserState';
|
||||||
|
|
||||||
export default function NotesEditor({
|
export default function NotesEditor({
|
||||||
@@ -41,9 +41,23 @@ export default function NotesEditor({
|
|||||||
const editor = useCreateBlockNote();
|
const editor = useCreateBlockNote();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Flex align='left'>
|
||||||
|
<Box style={{ flex: 1 }}>
|
||||||
<Paper p='md' shadow='sm' withBorder>
|
<Paper p='md' shadow='sm' withBorder>
|
||||||
<BlockNoteView editor={editor} editable={canEdit} />
|
<BlockNoteView
|
||||||
|
editor={editor}
|
||||||
|
editable={canEdit}
|
||||||
|
style={{ minHeight: '400px' }}
|
||||||
|
/>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
</Box>
|
||||||
|
<Tabs orientation='vertical' placement='right'>
|
||||||
|
<Tabs.List>
|
||||||
|
<Tabs.Tab value='manufacturing'>Manufacturing</Tabs.Tab>
|
||||||
|
<Tabs.Tab value='washing'>Washing</Tabs.Tab>
|
||||||
|
</Tabs.List>
|
||||||
|
</Tabs>
|
||||||
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user