💄(react) update Alert and Toast icons

For aesthetic reasons we decided to use the circled versions of
icons.
This commit is contained in:
Nathan Vasse
2024-01-05 17:06:08 +01:00
committed by NathanVss
parent 77921e018c
commit cef284b6ab
3 changed files with 6 additions and 6 deletions

View File

@@ -27,9 +27,9 @@ export const iconFromType = (type?: AlertType | ToastType) => {
case AlertType.INFO:
return "info";
case AlertType.SUCCESS:
return "task_alt";
return "check_circle";
case AlertType.WARNING:
return "warning";
return "error_outline";
case AlertType.ERROR:
return "cancel";
default:

View File

@@ -8,8 +8,8 @@ import { CunninghamProvider } from ":/components/Provider";
describe("<Alert/>", () => {
it.each([
[AlertType.INFO, "info"],
[AlertType.SUCCESS, "task_alt"],
[AlertType.WARNING, "warning"],
[AlertType.SUCCESS, "check_circle"],
[AlertType.WARNING, "error_outline"],
[AlertType.ERROR, "cancel"],
[AlertType.NEUTRAL, undefined],
])("renders % alert with according icon", (type, icon) => {

View File

@@ -124,8 +124,8 @@ describe("<Toast />", () => {
it.each([
[ToastType.INFO, "info"],
[ToastType.SUCCESS, "task_alt"],
[ToastType.WARNING, "warning"],
[ToastType.SUCCESS, "check_circle"],
[ToastType.WARNING, "error_outline"],
[ToastType.ERROR, "cancel"],
[ToastType.NEUTRAL, undefined],
])("shows a %s toast", async (type, iconName) => {