fix: fixed p can’t be an assendence of p (#455)

This commit is contained in:
Linkie Link 2023-09-11 17:23:39 +02:00 committed by GitHub
parent dade91f67e
commit 83e02eeeaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -10,14 +10,14 @@ interface Props {
positiveButton: AlertDialogButton
}
export default function AccoundDeleteAlertDialog(props: Props) {
export default function AccountDeleteAlertDialog(props: Props) {
const { open: showAlertDialog } = useAlertDialog()
const { title, description, closeHandler, positiveButton } = props
useEffect(() => {
showAlertDialog({
icon: (
<div className='flex h-full w-full p-3'>
<div className='flex w-full h-full p-3'>
<InfoCircle />
</div>
),

View File

@ -103,7 +103,7 @@ function AccountDeleteModal(props: Props) {
title={`Delete Credit Account ${accountId}`}
description={
<>
<Text className='text-white/50' size='sm'>
<Text className='mt-2 text-white/50' size='sm'>
The following assets within your credit account will be sent to your wallet.
</Text>
<div className='flex flex-col w-full gap-4 py-4 overflow-y-scroll max-h-100 scrollbar-hide'>

View File

@ -52,7 +52,11 @@ function AlertDialog(props: Props) {
hideCloseBtn
>
<Text size='xl'>{title}</Text>
<Text className='mt-2 text-white/60'>{description}</Text>
{typeof description === 'string' ? (
<Text className='mt-2 text-white/60'>{description}</Text>
) : (
description
)}
<div
className={classNames('mt-10 flex justify-between', positiveButton && 'flex-row-reverse')}
>