🚸 Make errors red

This commit is contained in:
nikolark committed 2021-11-18 22:58:30 +01:00
1 parent 9576becb62
commit 40b3cb119f
5 files changed
+26 -19

No files matched your search

+3 -2
View File
@@ -7,9 +7,10 @@ import { useToast } from "./ToastProvider";
export const Toast: React.FC = () => {
const ref = useRef<HTMLInputElement>(null);
const { visible, showToast, message } = useToast();
const { visible, showToast, message, background } = useToast();
const classes = clsx("toast align-items-center text-white bg-primary border-0", styles.toast);
const backgroundColor = `bg-${background}`;
const classes = clsx("toast align-items-center text-white bg-primary border-0", backgroundColor, styles.toast);
useEffect(() => {
if (!ref.current) return;