Move toasts to sonner (#6053)
This commit is contained in:
22
app/types.ts
22
app/types.ts
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user