Compare commits
4 commits
6d17d0b954
...
8ec4c95984
Author | SHA1 | Date | |
---|---|---|---|
8ec4c95984 | |||
a7d55d94a4 | |||
d25edc1cb8 | |||
aa12b94a01 |
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ const faces = [
|
||||||
"(╥﹏╥)",
|
"(╥﹏╥)",
|
||||||
]
|
]
|
||||||
|
|
||||||
export default function Error({ children }: { children: React.ReactNode }) {
|
export default function Error({ children }: { children }) {
|
||||||
return <div className={style.error}>
|
return <div className={style.error}>
|
||||||
<p className={style.message}>{children}</p>
|
<p className={style.message}>{children}</p>
|
||||||
<p className={style.sad}>{faces[Math.floor(Math.random() * faces.length)]}</p>
|
<p className={style.sad}>{faces[Math.floor(Math.random() * faces.length)]}</p>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Error from './error'
|
import Error from './error'
|
||||||
|
|
||||||
export default function NetworkError({ err }: { err: string }) {
|
export default function NetworkError({ err }: { err: string }) {
|
||||||
console.error(err);
|
console.err(err);
|
||||||
return <Error>Network Error</Error>;
|
return <Error>Network Error</Error>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue