Fix default expiration to match form

This commit is contained in:
Jackson Harper
2023-01-18 18:01:34 +08:00
parent cab2e7ba0d
commit 4e2197331c
2 changed files with 6 additions and 19 deletions

View File

@ -6,14 +6,13 @@ import {
import { VStack, HStack } from '../elements/LayoutPrimitives'
import { Button } from '../elements/Button'
import { StyledText } from '../elements/StyledText'
import { useConfirmListener } from '../../lib/keyboardShortcuts/useKeyboardShortcuts'
import { useEffect, useRef } from 'react'
type ConfirmationModalProps = {
message?: string
richMessage?: React.ReactNode
icon?: React.ReactNode
acceptButtonLabel?: string
cancelButtonLabel?: string
onAccept: () => void
onOpenChange: (open: boolean) => void
}
@ -42,7 +41,7 @@ export function ConfirmationModal(props: ConfirmationModalProps): JSX.Element {
}
}}
>
Cancel
{props.cancelButtonLabel ? props.cancelButtonLabel : 'Cancel'}
</Button>
<Button
style="ctaDarkYellow"