Fix Alert buttons
Text was not being flowed into the prop
This commit is contained in:
parent
247d2a466a
commit
0c89300664
1 changed files with 4 additions and 3 deletions
|
|
@ -29,9 +29,10 @@ const Alert = (props: Props) => {
|
|||
</AlertDialog.Description>
|
||||
<div className="buttons">
|
||||
<AlertDialog.Cancel asChild>
|
||||
<Button onClick={props.cancelAction}>
|
||||
{props.cancelActionText}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={props.cancelAction}
|
||||
text={props.cancelActionText}
|
||||
/>
|
||||
</AlertDialog.Cancel>
|
||||
{props.primaryAction ? (
|
||||
<AlertDialog.Action onClick={props.primaryAction}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue