Skip to content

Commit

Permalink
fixed error page font color #446
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Sep 18, 2024
1 parent 5710a67 commit 3ebe8b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ class ErrorView extends React.Component {

render() {
if (this.state.hasError) {
let isDarkMode = true
if (localStorage.getItem("chakra-ui-color-mode") === "light") {
isDarkMode = false
}
return (
<center style={{ color: "white" }}>
<center style={{color: isDarkMode ? "white" : "black"}}>
<br />
<img src={logo} alt='logo' width={"100px"} />
<br />
Expand Down

0 comments on commit 3ebe8b9

Please sign in to comment.