forked from zmc/pulpito-ng
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And wrap both the main app body and the DataGrid component with it. Signed-off-by: Zack Cerza <[email protected]>
- Loading branch information
Showing
3 changed files
with
69 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Typography from "@mui/material/Typography"; | ||
import Link from "../Link"; | ||
|
||
import CodeBlock from "../CodeBlock"; | ||
|
||
export default function ErrorFallback(props: {error: Error}) { | ||
return ( | ||
<div> | ||
<Typography | ||
color="textPrimary" | ||
variant="h5" | ||
> | ||
Apologies - the component encountered an error. Please | ||
<Link | ||
to="https://github.com/ceph/pulpito-ng/issues/new" | ||
> | ||
file an issue | ||
</Link> | ||
including this error message: | ||
</Typography> | ||
<CodeBlock value={props.error?.message || ""} language="js" /> | ||
</div> | ||
); | ||
} |