Edit toast colours

This commit is contained in:
nthouliss 2022-04-01 16:17:23 +11:00
parent 262785c65e
commit bd3a312e2f

View File

@ -5,11 +5,11 @@ import { AppearanceTypes, ToastProvider as DefaultToastProvider } from "react-to
function getToastAppearance(appearance: AppearanceTypes) {
let colour = "overlay"
if (appearance === "error") {
colour = "secondary"
colour = "highlight"
} else if (appearance === "info") {
colour = "overlay"
} else if (appearance === "warning") {
colour = "highlight"
colour = "secondary"
} else if (appearance === "success") {
colour = "primary"
}