From 40ce098d63373ff814a5445f9c230566175aa65a Mon Sep 17 00:00:00 2001 From: Florian BOUILLON Date: Tue, 30 Mar 2021 16:57:57 +0200 Subject: [PATCH] Removed SidebarContainer Signed-off-by: Florian BOUILLON --- .../SidebarContainer.module.styl | 32 ------------- src/dzeio/SidebarContainer/index.tsx | 45 ------------------- src/index.ts | 2 - 3 files changed, 79 deletions(-) delete mode 100644 src/dzeio/SidebarContainer/SidebarContainer.module.styl delete mode 100644 src/dzeio/SidebarContainer/index.tsx diff --git a/src/dzeio/SidebarContainer/SidebarContainer.module.styl b/src/dzeio/SidebarContainer/SidebarContainer.module.styl deleted file mode 100644 index 1991ac4..0000000 --- a/src/dzeio/SidebarContainer/SidebarContainer.module.styl +++ /dev/null @@ -1,32 +0,0 @@ -@import "../config.styl" - -.sidebar - position fixed - width 200px - top 0 - left 0 - height 100% - background white - padding 16px - -.content - padding-left 200px - -.item - display flex - padding 8px 16px - margin-top 8px - transition $transition - border-radius 8px - - svg - margin-right 8px - - div - text-align center - flex-grow 1 - margin-left -32px - - &:hover - background $default - color white diff --git a/src/dzeio/SidebarContainer/index.tsx b/src/dzeio/SidebarContainer/index.tsx deleted file mode 100644 index f7c4dca..0000000 --- a/src/dzeio/SidebarContainer/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import React, { FC } from 'react' - -import { ChevronLeft, TrendingUp } from 'react-feather' -import Link from 'next/link' -import Image from '../Image' - -import { IconProps } from '../interfaces' -import css from './SidebarContainer.module.styl' - -interface Props { - domain: string - children: React.ReactNode -} - -export default class SidebarContainer extends React.Component { - - private menu: Array<{name: string, icon: FC, href: string, as?: string}> = [ - { name: 'back', icon: ChevronLeft, href: '/dashboard' }, - { name: 'Uptime', icon: TrendingUp, as: `/dashboard/${this.props.domain}/uptime`, href: '/dashboard/[domain]/uptime' } - - ] - public render = () => ( - <> - -
- {this.props.children} -
- - ) - -} diff --git a/src/index.ts b/src/index.ts index 2fe4c6f..e7fc6b6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,6 @@ import Navbar from './dzeio/Navbar' import Overflow from './dzeio/Overflow' import Popup from './dzeio/Popup' import Row from './dzeio/Row' -import SidebarContainer from './dzeio/SidebarContainer' import Table from './dzeio/Table' import Text from './dzeio/Text' import * as Util from './dzeio/Util' @@ -46,7 +45,6 @@ export { Overflow, Popup, Row, - SidebarContainer, Table, Text, Util