forked from teamstarter/gsg-boilerplate-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from delphinegesse/feat/add-reminder-notification
Feat/add reminder notification
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
|
||
interface ReminderNotificationProps { | ||
name: string | ||
date: string | ||
} | ||
|
||
export default function ReminderNotification({ | ||
name, | ||
date | ||
}: ReminderNotificationProps) { | ||
return ( | ||
<div className="reminder-notification-container"> | ||
<h1 className="reminder-notification-title">Task reminder</h1> | ||
<div className="reminder-notification-content"> | ||
<p>{name}</p> | ||
<p>{`Due ${date.split('T')[0]}`}</p> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters