From dd6a10e4791421eca5e1bf7515813b0e8f46c264 Mon Sep 17 00:00:00 2001 From: KhrapovSergey <47587432+KhrapovSergey@users.noreply.github.com> Date: Tue, 12 Mar 2019 12:15:11 +0300 Subject: [PATCH] Lab 1: Create menu from rdf4j-workbench --- src/AntDesignMenu.stories.js | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/AntDesignMenu.stories.js diff --git a/src/AntDesignMenu.stories.js b/src/AntDesignMenu.stories.js new file mode 100644 index 000000000..d593cb38c --- /dev/null +++ b/src/AntDesignMenu.stories.js @@ -0,0 +1,60 @@ +import { storiesOf } from '@storybook/react'; +import React from 'react'; +import 'antd/dist/antd.css'; +import './index.css'; +import { Menu, Icon } from 'antd'; + + +const SubMenu = Menu.SubMenu; +const MenuItemGroup = Menu.ItemGroup; + +class Sider extends React.Component { + handleClick = (e) => { + console.log('click ', e); + } + + render() { + return ( +
+ ); + } +} + + +storiesOf('Lab1', module) + .add('Menu', () => ( +