diff --git a/packages/beacon-ui/src/components/alert/index.tsx b/packages/beacon-ui/src/components/alert/index.tsx index 403ec47c4..a655ff85b 100644 --- a/packages/beacon-ui/src/components/alert/index.tsx +++ b/packages/beacon-ui/src/components/alert/index.tsx @@ -7,6 +7,14 @@ import useIsMobile from 'src/ui/alert/hooks/useIsMobile' const Alert: React.FC> = (props) => { const isMobile = useIsMobile() + const backButton = props.onBackClick ? ( + + ) : ( + + ) + return ( > = (props) => { justifyContent={'center'} flexWrap={'nowrap'} > - {props.onBackClick && ( - - )} - {!props.onBackClick && } + {backButton}