diff --git a/packages/desktop/src/main/resources/screenshots/CustomAlert_1_desktop.png b/packages/desktop/src/main/resources/screenshots/CustomAlert_1_desktop.png index e79077a37..86a064cd0 100644 Binary files a/packages/desktop/src/main/resources/screenshots/CustomAlert_1_desktop.png and b/packages/desktop/src/main/resources/screenshots/CustomAlert_1_desktop.png differ diff --git a/packages/desktop/src/main/ts/custom-alert/CustomAlert.tsx b/packages/desktop/src/main/ts/custom-alert/CustomAlert.tsx index e4a9bc62c..ceb3b4b4a 100644 --- a/packages/desktop/src/main/ts/custom-alert/CustomAlert.tsx +++ b/packages/desktop/src/main/ts/custom-alert/CustomAlert.tsx @@ -1,6 +1,5 @@ import { AlertBlockControl, - Breaker, Card, FlexItem, FlexPos, @@ -10,7 +9,6 @@ import { } from '@qiwi/pijma-core' import React, { FC, ReactNode } from 'react' -import { Paragraph } from '../typography' export interface CustomAlertProps { icon?: ReactNode @@ -22,14 +20,14 @@ export interface CustomAlertProps { } export const CustomAlert: FC = ({ - children, - icon, - bg, - shadow, - textColor, - onHide, - ...rest -}) => { + children, + icon, + bg, + shadow, + textColor, + onHide, + ...rest + }) => { return ( = ({ > {icon && {icon}} - - - + {children} {onHide !== undefined ? ( = ({ - children, - icon, - bg, - shadow, - textColor, - onHide, - ...rest -}) => { + children, + icon, + bg, + shadow, + textColor, + onHide, + ...rest + }) => { return ( = ({ > {icon && {icon}} - - - + {children} {onHide !== undefined ? (