Move toasts to sonner (#6053)

This commit is contained in:
Tom Moor
2023-10-22 17:30:24 -04:00
committed by GitHub
parent 389297a337
commit ef76405bd6
92 changed files with 363 additions and 1015 deletions

View File

@@ -121,19 +121,6 @@ export type LocationWithState = Location & {
state: Record<string, string>;
};
export type Toast = {
id: string;
createdAt: string;
message: string;
type: "warning" | "error" | "info" | "success" | "loading";
timeout?: number;
reoccurring?: number;
action?: {
text: string;
onClick: React.MouseEventHandler<HTMLSpanElement>;
};
};
export type FetchOptions = {
prefetch?: boolean;
revisionId?: string;
@@ -177,15 +164,6 @@ export type SearchResult = {
document: Document;
};
export type ToastOptions = {
type: "warning" | "error" | "info" | "success" | "loading";
timeout?: number;
action?: {
text: string;
onClick: React.MouseEventHandler<HTMLSpanElement>;
};
};
export type WebsocketEntityDeletedEvent = {
modelId: string;
};