2
0

🚸 Show toast for non-uploaded file in preview mode

Closes #278
This commit is contained in:
Baptiste Arnaud
2023-05-05 15:33:49 -04:00
parent c469912979
commit be009a216d
4 changed files with 15 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ export const WebPreview = () => {
logs?.forEach((log) => {
showToast({
icon: <WebhookIcon />,
status: log.status === 'error' ? 'error' : 'success',
status: log.status as 'success' | 'error' | 'info',
title: log.status === 'error' ? 'An error occured' : undefined,
description: log.description,
details: log.details