Skip to content

Commit

Permalink
[BF] fix markup for CustomAlert
Browse files Browse the repository at this point in the history
  • Loading branch information
t.chigvintseva committed Jun 13, 2024
1 parent 9e0fcb1 commit c09be82
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 27 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 9 additions & 13 deletions packages/desktop/src/main/ts/custom-alert/CustomAlert.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
AlertBlockControl,
Breaker,
Card,
FlexItem,
FlexPos,
Expand All @@ -10,7 +9,6 @@ import {
} from '@qiwi/pijma-core'
import React, { FC, ReactNode } from 'react'

import { Paragraph } from '../typography'

export interface CustomAlertProps {
icon?: ReactNode
Expand All @@ -22,14 +20,14 @@ export interface CustomAlertProps {
}

export const CustomAlert: FC<CustomAlertProps> = ({
children,
icon,
bg,
shadow,
textColor,
onHide,
...rest
}) => {
children,
icon,
bg,
shadow,
textColor,
onHide,
...rest
}) => {
return (
<AlertBlockControl
onHide={onHide}
Expand All @@ -50,9 +48,7 @@ export const CustomAlert: FC<CustomAlertProps> = ({
>
{icon && <FlexItem mr={3}>{icon}</FlexItem>}
<FlexItem>
<Paragraph color={textColor}>
<Breaker children={children} />
</Paragraph>
{children}
</FlexItem>
{onHide !== undefined ? (
<Pos
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 9 additions & 14 deletions packages/mobile/src/main/ts/custom-alert/CustomAlert.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
AlertBlockControl,
Breaker,
Card,
FlexItem,
FlexPos,
Expand All @@ -10,8 +9,6 @@ import {
} from '@qiwi/pijma-core'
import React, { FC, ReactNode } from 'react'

import { Paragraph } from '../typography'

export interface CustomAlertProps {
icon?: ReactNode
shadow?: string
Expand All @@ -22,14 +19,14 @@ export interface CustomAlertProps {
}

export const CustomAlert: FC<CustomAlertProps> = ({
children,
icon,
bg,
shadow,
textColor,
onHide,
...rest
}) => {
children,
icon,
bg,
shadow,
textColor,
onHide,
...rest
}) => {
return (
<AlertBlockControl
onHide={onHide}
Expand All @@ -50,9 +47,7 @@ export const CustomAlert: FC<CustomAlertProps> = ({
>
{icon && <FlexItem mr={2}>{icon}</FlexItem>}
<FlexItem my="2px">
<Paragraph color={textColor}>
<Breaker children={children} />
</Paragraph>
{children}
</FlexItem>
{onHide !== undefined ? (
<Pos
Expand Down

0 comments on commit c09be82

Please sign in to comment.