fix: fixed p can’t be an assendence of p (#455)
This commit is contained in:
parent
dade91f67e
commit
83e02eeeaa
@ -10,14 +10,14 @@ interface Props {
|
|||||||
positiveButton: AlertDialogButton
|
positiveButton: AlertDialogButton
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function AccoundDeleteAlertDialog(props: Props) {
|
export default function AccountDeleteAlertDialog(props: Props) {
|
||||||
const { open: showAlertDialog } = useAlertDialog()
|
const { open: showAlertDialog } = useAlertDialog()
|
||||||
const { title, description, closeHandler, positiveButton } = props
|
const { title, description, closeHandler, positiveButton } = props
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
showAlertDialog({
|
showAlertDialog({
|
||||||
icon: (
|
icon: (
|
||||||
<div className='flex h-full w-full p-3'>
|
<div className='flex w-full h-full p-3'>
|
||||||
<InfoCircle />
|
<InfoCircle />
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
|
@ -103,7 +103,7 @@ function AccountDeleteModal(props: Props) {
|
|||||||
title={`Delete Credit Account ${accountId}`}
|
title={`Delete Credit Account ${accountId}`}
|
||||||
description={
|
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.
|
The following assets within your credit account will be sent to your wallet.
|
||||||
</Text>
|
</Text>
|
||||||
<div className='flex flex-col w-full gap-4 py-4 overflow-y-scroll max-h-100 scrollbar-hide'>
|
<div className='flex flex-col w-full gap-4 py-4 overflow-y-scroll max-h-100 scrollbar-hide'>
|
||||||
|
@ -52,7 +52,11 @@ function AlertDialog(props: Props) {
|
|||||||
hideCloseBtn
|
hideCloseBtn
|
||||||
>
|
>
|
||||||
<Text size='xl'>{title}</Text>
|
<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
|
<div
|
||||||
className={classNames('mt-10 flex justify-between', positiveButton && 'flex-row-reverse')}
|
className={classNames('mt-10 flex justify-between', positiveButton && 'flex-row-reverse')}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user