Skip to content

Commit

Permalink
remove obsolete lines and code
Browse files Browse the repository at this point in the history
  • Loading branch information
dorothyynwong committed Aug 2, 2024
1 parent 2c42f72 commit 04441b4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/images/PreviewImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ interface PreviewImageProp {
image: PictureOfDay;
}

interface BirthdayProps {
event: React.FormEvent<HTMLFormElement>
setMyPreviewImage: React.Dispatch<React.SetStateAction<PictureOfDay | null>>
}


export function PreviewImage() {

const [myPreviewImage, setMyPreviewImage] = useState<PictureOfDay | null>(null);
Expand All @@ -25,7 +19,6 @@ export function PreviewImage() {
catch (error) {
console.error("Error fetching today's image:", error);
}

}

const handleBirthdayFormSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
Expand All @@ -47,7 +40,6 @@ export function PreviewImage() {
onClick={handleTodayButtonClick}>Today</button>

<form onSubmit={handleBirthdayFormSubmit}>

<label>Birthday</label>
<input
type="date"
Expand Down

0 comments on commit 04441b4

Please sign in to comment.