refactor: extract toast

This commit is contained in:
David Nguyen
2023-10-16 12:20:57 +11:00
parent 569a559805
commit 24af83923d
6 changed files with 55 additions and 18 deletions

View File

@ -133,7 +133,7 @@ function dispatch(action: Action) {
});
}
type Toast = Omit<ToasterToast, 'id'>;
export type Toast = Omit<ToasterToast, 'id'>;
function toast({ ...props }: Toast) {
const id = genId();