diff --git a/src/components/Notifications/NotificationsEmptyState.tsx b/src/components/Notifications/NotificationsEmptyState.tsx index bdd35f31..2527e8a0 100644 --- a/src/components/Notifications/NotificationsEmptyState.tsx +++ b/src/components/Notifications/NotificationsEmptyState.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import {Icon, useTheme} from '@gravity-ui/uikit'; +import {Icon} from '@gravity-ui/uikit'; import {block} from '../utils/cn'; @@ -10,22 +10,14 @@ import './Notifications.scss'; const b = block('notifications'); -const nothingFoundSvg = ``; - -const nothingFoundDarkSvg = ``; +const nothingFoundSvg = ``; type Props = {image?: React.ReactNode; content: React.ReactNode}; export const NotificationsEmptyState = React.memo(function NotificationsEmptyState(props: Props) { - const theme = useTheme(); - return (
- {props.image ? ( - props.image - ) : ( - - )} + {props.image ? props.image : }
{i18n('no-notifications')}
{props.content ? ( diff --git a/src/components/Notifications/NotificationsErrorState.tsx b/src/components/Notifications/NotificationsErrorState.tsx index 7fdd7e7a..ae4b591b 100644 --- a/src/components/Notifications/NotificationsErrorState.tsx +++ b/src/components/Notifications/NotificationsErrorState.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import {Icon, useTheme} from '@gravity-ui/uikit'; +import {Icon} from '@gravity-ui/uikit'; import {block} from '../utils/cn'; @@ -10,22 +10,14 @@ import './Notifications.scss'; const b = block('notifications'); -const errorSvg = ``; - -const errorDarkSvg = ``; +const errorSvg = ``; type Props = {image?: React.ReactNode; content: React.ReactNode}; export const NotificationsErrorState = React.memo(function NotificationsEmptyState(props: Props) { - const theme = useTheme(); - return (
- {props.image ? ( - props.image - ) : ( - - )} + {props.image ? props.image : }
{i18n('notifications-error')}
{props.content ? (