Fix Alert buttons

Text was not being flowed into the prop
This commit is contained in:
Justin Edmund 2022-12-22 23:33:24 -08:00
parent 247d2a466a
commit 0c89300664

View file

@ -29,9 +29,10 @@ const Alert = (props: Props) => {
</AlertDialog.Description> </AlertDialog.Description>
<div className="buttons"> <div className="buttons">
<AlertDialog.Cancel asChild> <AlertDialog.Cancel asChild>
<Button onClick={props.cancelAction}> <Button
{props.cancelActionText} onClick={props.cancelAction}
</Button> text={props.cancelActionText}
/>
</AlertDialog.Cancel> </AlertDialog.Cancel>
{props.primaryAction ? ( {props.primaryAction ? (
<AlertDialog.Action onClick={props.primaryAction}> <AlertDialog.Action onClick={props.primaryAction}>