refactor: add custom alert component and remove all other Alert standard components in all components

This commit is contained in:
2026-07-09 11:23:41 +02:00
parent 925cb73c47
commit ef905fb30b
13 changed files with 213 additions and 222 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Alert } from "@mui/joy";
interface MyAlertProps {
type: "success" | "warning" | "danger" | "neutral" | "primary";
header: string;
text: string;
}
export const MyAlert = (props: MyAlertProps) => {
return (
<Alert
variant="soft"
color={props.type}
className="rounded-2xl drop-shadow-sm"
>
{props.header}
<br />
{props.text}
</Alert>
);
};