|
@@ -1,17 +1,19 @@
|
|
|
import React, { ReactNode, ReactChildren } from 'react';
|
|
import React, { ReactNode, ReactChildren } from 'react';
|
|
|
import Drawer, {
|
|
import Drawer, {
|
|
|
DrawerHeader,
|
|
DrawerHeader,
|
|
|
- DrawerSubtitle,
|
|
|
|
|
DrawerTitle,
|
|
DrawerTitle,
|
|
|
DrawerContent,
|
|
DrawerContent,
|
|
|
} from '@material/react-drawer';
|
|
} from '@material/react-drawer';
|
|
|
-import List, {ListItem, ListItemText} from '@material/react-list';
|
|
|
|
|
|
|
+import List, { ListItem } from '@material/react-list';
|
|
|
|
|
+import { ReactComponent as Logo } from 'svgs/logo.svg';
|
|
|
|
|
+import { ReactNodeArray } from 'prop-types';
|
|
|
|
|
+
|
|
|
|
|
+import Icon from 'components/Icon';
|
|
|
|
|
|
|
|
import '@material/react-drawer/dist/drawer.min.css';
|
|
import '@material/react-drawer/dist/drawer.min.css';
|
|
|
import '@material/react-list/dist/list.min.css';
|
|
import '@material/react-list/dist/list.min.css';
|
|
|
|
|
|
|
|
import './styles.scss';
|
|
import './styles.scss';
|
|
|
-import { ReactNodeArray } from 'prop-types';
|
|
|
|
|
|
|
|
|
|
type CBKDrawerProps = {
|
|
type CBKDrawerProps = {
|
|
|
children: ReactNodeArray,
|
|
children: ReactNodeArray,
|
|
@@ -21,6 +23,9 @@ function CBKDrawer(props: CBKDrawerProps) {
|
|
|
return (
|
|
return (
|
|
|
<Drawer className='cbk-drawer'>
|
|
<Drawer className='cbk-drawer'>
|
|
|
<DrawerHeader>
|
|
<DrawerHeader>
|
|
|
|
|
+ <Icon width={64}>
|
|
|
|
|
+ <Logo />
|
|
|
|
|
+ </Icon>
|
|
|
<DrawerTitle tag='h1'>
|
|
<DrawerTitle tag='h1'>
|
|
|
cookbook
|
|
cookbook
|
|
|
</DrawerTitle>
|
|
</DrawerTitle>
|