Skip to content

Commit

Permalink
add default error and success objects for snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisibrahimd committed Jan 29, 2023
1 parent f49aadf commit ccfc2dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib/notistack/options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { OptionsObject } from "notistack";
import { SnackbarDismissButton } from "~/components/SnackbarDismissButton";

export const SuccessOptions: OptionsObject = {
variant: "success",
action: SnackbarDismissButton
}

export const ErrorOptions: OptionsObject = {
variant: "error",
action: SnackbarDismissButton
}

0 comments on commit ccfc2dc

Please sign in to comment.