-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remake error page * Fix types * Update error id styles
- Loading branch information
1 parent
62008e5
commit 7e83839
Showing
6 changed files
with
257 additions
and
85 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
import { defineMessages } from "react-intl"; | ||
|
||
const messages = defineMessages({ | ||
header: { | ||
defaultMessage: "We’ve encountered an unexpected error" | ||
}, | ||
content: { | ||
defaultMessage: | ||
"Don’t worry we will fix it soon. Try to refresh the page or go back to dashboard." | ||
}, | ||
btnDashboard: { | ||
defaultMessage: "Dashboard", | ||
description: "button linking to dashboard" | ||
}, | ||
btnRefresh: { | ||
defaultMessage: "Refresh page", | ||
description: "button refreshing page" | ||
}, | ||
or: { | ||
defaultMessage: "or", | ||
description: | ||
"conjunction, choice between going to dashboard or refreshing page" | ||
} | ||
}); | ||
|
||
export default messages; |
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,54 @@ | ||
import { makeStyles } from "@saleor/macaw-ui"; | ||
|
||
const useStyles = makeStyles( | ||
theme => ({ | ||
buttonContainer: { | ||
marginTop: theme.spacing(2) | ||
}, | ||
container: { | ||
[theme.breakpoints.down("sm")]: { | ||
gridTemplateColumns: "1fr", | ||
padding: theme.spacing(3), | ||
width: "100%" | ||
}, | ||
display: "grid", | ||
gridTemplateColumns: "1fr 487px", | ||
margin: "0 auto", | ||
gap: theme.spacing(5), | ||
width: `calc(480px * 2 + ${theme.spacing(5)})` | ||
}, | ||
conjunction: { | ||
display: "inline-block", | ||
margin: theme.spacing(0, 1) | ||
}, | ||
errorId: { | ||
marginTop: theme.spacing(3), | ||
letterSpacing: "0.1rem", | ||
textTransform: "uppercase", | ||
fontWeight: 500 | ||
}, | ||
innerContainer: { | ||
[theme.breakpoints.down("sm")]: { | ||
order: 1, | ||
textAlign: "center" | ||
}, | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center" | ||
}, | ||
notFoundImage: { | ||
width: "100%" | ||
}, | ||
root: { | ||
alignItems: "center", | ||
display: "flex", | ||
height: "calc(100vh - 180px)" | ||
}, | ||
header: { | ||
marginBottom: theme.spacing(2) | ||
} | ||
}), | ||
{ name: "ErrorPage" } | ||
); | ||
|
||
export default useStyles; |
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