diff --git a/packages/component/src/ui/empty/empty-svg.tsx b/packages/component/src/ui/empty/empty-svg.tsx index 310e773610..ec91fb1b1a 100644 --- a/packages/component/src/ui/empty/empty-svg.tsx +++ b/packages/component/src/ui/empty/empty-svg.tsx @@ -1,154 +1,33 @@ -import SvgIcon from '@mui/material/SvgIcon'; import { memo } from 'react'; -export const EmptyLightSvg = memo(function EmptySvg() { +export const EmptySvg = memo(function EmptySvg() { return ( - - - - - - - - - - ); -}); - -export const EmptyDarkSvg = memo(function EmptySvg() { - return ( - - - - - - - - - - - + + + + + + + + ); }); diff --git a/packages/component/src/ui/empty/empty.tsx b/packages/component/src/ui/empty/empty.tsx index fefb66930d..ee02b577a4 100644 --- a/packages/component/src/ui/empty/empty.tsx +++ b/packages/component/src/ui/empty/empty.tsx @@ -1,7 +1,6 @@ -import { useTheme } from 'next-themes'; import type { CSSProperties } from 'react'; -import { EmptyDarkSvg, EmptyLightSvg } from './empty-svg'; +import { EmptySvg } from './empty-svg'; import { StyledEmptyContainer } from './style'; export type EmptyContentProps = { containerStyle?: CSSProperties; @@ -14,11 +13,11 @@ export const Empty = ({ description, descriptionStyle, }: EmptyContentProps) => { - const { theme } = useTheme(); - const isDark = theme === 'dark'; return ( - {isDark ? : } +
+ +

{description}

);