diff --git a/package.json b/package.json index 8c69e3dd..7c2235a6 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ "rc-drawer": "^4.4.3", "rc-tree-select": "^5.8.0", "react": "^18||^17", + "react-dom": "^18.2.0", "react-dropdown": "^1.11.0", "react-grid-system": "^8.1.9", "react-i18next": "^12.2.0", diff --git a/src/components/atoms/Tabs/Tabs.tsx b/src/components/atoms/Tabs/Tabs.tsx index c12fa5c0..d5d4a80c 100644 --- a/src/components/atoms/Tabs/Tabs.tsx +++ b/src/components/atoms/Tabs/Tabs.tsx @@ -10,6 +10,7 @@ interface TabProps { label: string; key: number; component: ReactNode; + hidden?: boolean; } export interface TabsProps extends ExtendableStyledComponent { @@ -83,6 +84,10 @@ export const Tabs: React.FC = (props) => {
{tabs.map((tab) => { + if (tab.hidden) { + return null; + } + return (