Skip to content

Commit

Permalink
error modals (#2176)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Manuel Spoleti <104365141+juans-chainsafe@users.noreply.github.com>
  • Loading branch information
tanmoyAtb and juans-chainsafe authored Jun 9, 2022
1 parent 9b515da commit 18397eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/files-ui/src/Components/Modules/ErrorModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React from "react"
import { Button, Modal, Typography } from "@chainsafe/common-components"
import { ROUTE_LINKS } from "../FilesRoutes"
Expand All @@ -14,7 +13,7 @@ const ErrorModal = ({ error, componentStack, resetError }: Props) => {

const generalStyle = {
margin: "1rem",
backgrounColor: "var(--gray1)",
backgroundColor: "var(--gray1)",
color: "var(--gray9)"
}

Expand All @@ -31,7 +30,7 @@ const ErrorModal = ({ error, componentStack, resetError }: Props) => {
...generalStyle
}}
>
An unexpected error occured
An unexpected error occurred
</Typography>
<Typography
component="p"
Expand All @@ -45,7 +44,6 @@ const ErrorModal = ({ error, componentStack, resetError }: Props) => {
Discord
</a>
</Typography>
<br/>
<Typography
variant="h4"
style={{
Expand All @@ -61,11 +59,13 @@ const ErrorModal = ({ error, componentStack, resetError }: Props) => {
backgroundColor: "ghostwhite",
padding: "1rem",
marginTop: 0,
color: "black"
color: "black",
maxHeight: "8rem",
overflow: "auto"
}}
component="p"
>
<pre>{error?.message.toString()}</pre>
{error?.message.toString()}
</Typography>
<Typography
variant="h4"
Expand All @@ -80,7 +80,7 @@ const ErrorModal = ({ error, componentStack, resetError }: Props) => {
component="p"
style={{
...generalStyle,
height: "5rem",
height: "10rem",
overflow: "auto",
padding: "1rem",
border: "2px solid ghostwhite",
Expand Down

0 comments on commit 18397eb

Please sign in to comment.