💄 Better toast UI when it doesn't contain details
This commit is contained in:
@@ -36,7 +36,7 @@ export const Toast = ({
|
|||||||
shadow="sm"
|
shadow="sm"
|
||||||
fontSize="sm"
|
fontSize="sm"
|
||||||
pos="relative"
|
pos="relative"
|
||||||
maxW="450px"
|
maxW={details ? '450px' : '300px'}
|
||||||
>
|
>
|
||||||
<HStack alignItems="flex-start" pr="7" spacing="3" w="full">
|
<HStack alignItems="flex-start" pr="7" spacing="3" w="full">
|
||||||
<Icon customIcon={icon} status={status} />{' '}
|
<Icon customIcon={icon} status={status} />{' '}
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ export const ImportTypebotFromFileButton = ({
|
|||||||
console.error(err)
|
console.error(err)
|
||||||
showToast({
|
showToast({
|
||||||
description: "Failed to parse the file. Are you sure it's a typebot?",
|
description: "Failed to parse the file. Are you sure it's a typebot?",
|
||||||
|
details: {
|
||||||
|
content: JSON.stringify(err, null, 2),
|
||||||
|
lang: 'json',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user