mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Split PanelType out into own file
This commit is contained in:
parent
70e5c7b142
commit
e019455f18
14
src/frontend/src/components/nav/Panel.tsx
Normal file
14
src/frontend/src/components/nav/Panel.tsx
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import { ReactNode } from 'react';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Type used to specify a single panel in a panel group
|
||||||
|
*/
|
||||||
|
export type PanelType = {
|
||||||
|
name: string;
|
||||||
|
label: string;
|
||||||
|
icon?: ReactNode;
|
||||||
|
content: ReactNode;
|
||||||
|
hidden?: boolean;
|
||||||
|
disabled?: boolean;
|
||||||
|
showHeadline?: boolean;
|
||||||
|
};
|
@ -25,19 +25,7 @@ import { navigateToLink } from '../../functions/navigation';
|
|||||||
import { useLocalState } from '../../states/LocalState';
|
import { useLocalState } from '../../states/LocalState';
|
||||||
import { Boundary } from '../Boundary';
|
import { Boundary } from '../Boundary';
|
||||||
import { StylishText } from '../items/StylishText';
|
import { StylishText } from '../items/StylishText';
|
||||||
|
import { PanelType } from './Panel';
|
||||||
/**
|
|
||||||
* Type used to specify a single panel in a panel group
|
|
||||||
*/
|
|
||||||
export type PanelType = {
|
|
||||||
name: string;
|
|
||||||
label: string;
|
|
||||||
icon?: ReactNode;
|
|
||||||
content: ReactNode;
|
|
||||||
hidden?: boolean;
|
|
||||||
disabled?: boolean;
|
|
||||||
showHeadline?: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PanelProps = {
|
export type PanelProps = {
|
||||||
pageKey: string;
|
pageKey: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user