feat: updating useNotification hook

- automatically generates id and timestamp
- components just have to provide a message
This commit is contained in:
Mose Müller
2023-08-10 11:04:43 +02:00
parent 6e4909ece5
commit 04e0e9e8b2
9 changed files with 23 additions and 34 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import { ToastContainer, Toast } from 'react-bootstrap';
type Notification = {
export type Notification = {
id: number;
time: string;
text: string;