From 04441b4439d506f915cfd2ea927aac6a90392183 Mon Sep 17 00:00:00 2001 From: Dorothy Wong Date: Fri, 2 Aug 2024 10:06:54 +0100 Subject: [PATCH] remove obsolete lines and code --- src/images/PreviewImage.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/images/PreviewImage.tsx b/src/images/PreviewImage.tsx index 4d3815c..1db16e4 100644 --- a/src/images/PreviewImage.tsx +++ b/src/images/PreviewImage.tsx @@ -6,12 +6,6 @@ interface PreviewImageProp { image: PictureOfDay; } -interface BirthdayProps { - event: React.FormEvent - setMyPreviewImage: React.Dispatch> -} - - export function PreviewImage() { const [myPreviewImage, setMyPreviewImage] = useState(null); @@ -25,7 +19,6 @@ export function PreviewImage() { catch (error) { console.error("Error fetching today's image:", error); } - } const handleBirthdayFormSubmit = async (event: React.FormEvent) => { @@ -47,7 +40,6 @@ export function PreviewImage() { onClick={handleTodayButtonClick}>Today
-