Skip to content

Commit

Permalink
fix: markup for CustomAlert (#591)
Browse files Browse the repository at this point in the history
* [BF] fix markup for CustomAlert

* [BF] fix markup for CustomAlert

---------

Co-authored-by: t.chigvintseva <[email protected]>
  • Loading branch information
ttroshkina and t.chigvintseva authored Jun 13, 2024
1 parent 9e0fcb1 commit 95b7624
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 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,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 Down Expand Up @@ -50,9 +47,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.
7 changes: 1 addition & 6 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 Down Expand Up @@ -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 95b7624

Please sign in to comment.