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>
|
</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}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue