Many nice things
This commit is contained in:
17
src/components/LoadingError.tsx
Normal file
17
src/components/LoadingError.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import React from "react";
|
||||
import { DashboardLoadError } from "../types";
|
||||
import Alert from "@mui/material/Alert";
|
||||
import AlertTitle from "@mui/material/AlertTitle";
|
||||
|
||||
interface LoadingErrorProps {
|
||||
error: DashboardLoadError;
|
||||
}
|
||||
|
||||
export default function LoadingError({ error }: LoadingErrorProps) {
|
||||
return (
|
||||
<Alert severity="error">
|
||||
<AlertTitle>{error.message}</AlertTitle>
|
||||
<p>URL: {error.url}</p>
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user