From 6541dff12e03ef458fdc4aa33fb3ea00e73970a6 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 6 Jan 2023 02:58:59 -0800 Subject: [PATCH] Fix primary button, add overlay, allow ReactNode msg --- components/Alert/index.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/components/Alert/index.tsx b/components/Alert/index.tsx index 21a1a1a7..4f4b9717 100644 --- a/components/Alert/index.tsx +++ b/components/Alert/index.tsx @@ -3,12 +3,13 @@ import * as AlertDialog from '@radix-ui/react-alert-dialog' import './index.scss' import Button from '~components/Button' +import Overlay from '~components/Overlay' // Props interface Props { open: boolean title?: string - message: string + message: string | React.ReactNode primaryAction?: () => void primaryActionText?: string cancelAction: () => void @@ -34,8 +35,11 @@ const Alert = (props: Props) => { /> {props.primaryAction ? ( - - {props.primaryActionText} + +