Edit toast colours
This commit is contained in:
parent
262785c65e
commit
bd3a312e2f
@ -5,11 +5,11 @@ import { AppearanceTypes, ToastProvider as DefaultToastProvider } from "react-to
|
|||||||
function getToastAppearance(appearance: AppearanceTypes) {
|
function getToastAppearance(appearance: AppearanceTypes) {
|
||||||
let colour = "overlay"
|
let colour = "overlay"
|
||||||
if (appearance === "error") {
|
if (appearance === "error") {
|
||||||
colour = "secondary"
|
colour = "highlight"
|
||||||
} else if (appearance === "info") {
|
} else if (appearance === "info") {
|
||||||
colour = "overlay"
|
colour = "overlay"
|
||||||
} else if (appearance === "warning") {
|
} else if (appearance === "warning") {
|
||||||
colour = "highlight"
|
colour = "secondary"
|
||||||
} else if (appearance === "success") {
|
} else if (appearance === "success") {
|
||||||
colour = "primary"
|
colour = "primary"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user