From e83b643d86c19ea32b5b59a1318301de51469f7d Mon Sep 17 00:00:00 2001 From: jude Date: Fri, 1 Mar 2024 16:56:31 +0000 Subject: [PATCH] Show error for files that are too large --- reminder-dashboard/src/components/Reminder/Attachment.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reminder-dashboard/src/components/Reminder/Attachment.tsx b/reminder-dashboard/src/components/Reminder/Attachment.tsx index 1e6d48c..7e5cce8 100644 --- a/reminder-dashboard/src/components/Reminder/Attachment.tsx +++ b/reminder-dashboard/src/components/Reminder/Attachment.tsx @@ -1,8 +1,11 @@ import { useReminder } from "./ReminderContext"; +import { useFlash } from "../App/FlashContext"; export const Attachment = () => { const [{ attachment_name }, setReminder] = useReminder(); + const flash = useFlash(); + return (