-
+
+
)}
{this.state.subMenu && (
@@ -174,6 +178,14 @@ export default class Navbar extends React.Component
{
>
)
+ private onCloseOpenClick = () => {
+ let willBeOpen = !this.state.open
+ if (this.props.onClose && !willBeOpen) {
+ willBeOpen = this.props.onClose()
+ }
+ this.setState(!willBeOpen ? {open: false, activeMenu: undefined} : {open: true})
+ }
+
private onMenuClick = (value?: string) => {
this.setState({userMenu: false, subMenu: undefined})
if (value) {
diff --git a/src/Table/Table.stories.tsx b/src/Table/Table.stories.tsx
index b69c864..a8d2f90 100644
--- a/src/Table/Table.stories.tsx
+++ b/src/Table/Table.stories.tsx
@@ -9,7 +9,7 @@ export default {
component: Component
} as Meta
-export const Basic = (args: any) => (
+export const Table = (args: any) => (
diff --git a/src/Text/Text.stories.tsx b/src/Text/Text.stories.tsx
index ba09372..516dffe 100644
--- a/src/Text/Text.stories.tsx
+++ b/src/Text/Text.stories.tsx
@@ -7,7 +7,7 @@ export default {
component: Component
} as Meta
-export const Basic = (args: any) => (
+export const Text = (args: any) => (
<>
TExt
TExt