From cba88f20e0eb903f9a8bab97d5e21164998e8239 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 13 Apr 2023 10:24:03 +0530 Subject: [PATCH] remove deprecated sidebar buttons --- src/components/Sidebar/Button.tsx | 37 ------------------- src/components/Sidebar/ShortcutButton.tsx | 33 ----------------- .../Upload/UploadTypeSelector/option.tsx | 18 --------- 3 files changed, 88 deletions(-) delete mode 100644 src/components/Sidebar/Button.tsx delete mode 100644 src/components/Sidebar/ShortcutButton.tsx delete mode 100644 src/components/Upload/UploadTypeSelector/option.tsx diff --git a/src/components/Sidebar/Button.tsx b/src/components/Sidebar/Button.tsx deleted file mode 100644 index 5f1c2eb0c..000000000 --- a/src/components/Sidebar/Button.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import React, { FC } from 'react'; -import { Button, ButtonProps, Theme, TypographyProps } from '@mui/material'; -import { FluidContainer } from 'components/Container'; -import { SystemStyleObject } from '@mui/system'; - -export type SidebarButtonProps = ButtonProps< - 'button', - { typographyVariant?: TypographyProps['variant'] } ->; - -const SidebarButton: FC = ({ - children, - sx, - typographyVariant = 'body', - ...props -}) => { - return ( - <> - - - ); -}; - -export default SidebarButton; diff --git a/src/components/Sidebar/ShortcutButton.tsx b/src/components/Sidebar/ShortcutButton.tsx deleted file mode 100644 index 076393751..000000000 --- a/src/components/Sidebar/ShortcutButton.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import React, { FC } from 'react'; -import { Box, ButtonProps } from '@mui/material'; -import SidebarButton from './Button'; -import { DotSeparator } from './styledComponents'; -import { formatNumber } from 'utils/number/format'; - -type Iprops = ButtonProps< - 'button', - { label: JSX.Element | string; count: number } ->; - -const ShortcutButton: FC> = ({ - label, - count, - ...props -}) => { - return ( - - {label} - - - - {formatNumber(count)} - - - ); -}; - -export default ShortcutButton; diff --git a/src/components/Upload/UploadTypeSelector/option.tsx b/src/components/Upload/UploadTypeSelector/option.tsx deleted file mode 100644 index b80f73747..000000000 --- a/src/components/Upload/UploadTypeSelector/option.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import { Button, ButtonProps } from '@mui/material'; -import ChevronRight from '@mui/icons-material/ChevronRight'; -import { FluidContainer } from 'components/Container'; - -type Iprops = ButtonProps<'button'>; - -export function UploadTypeOption({ children, ...props }: Iprops) { - return ( - - ); -}