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