aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/404.js
diff options
context:
space:
mode:
authorJeff Kleinaitis <jeffkleinaitis@gmail.com>2024-04-19 14:30:56 -0700
committerGitHub <noreply@github.com>2024-04-19 14:30:56 -0700
commit5b96af38b9761076845fb81fd0946002e4867bc0 (patch)
treeb81c462abce458c32d2f62f963e5d2439753531e /src/pages/404.js
parent0af66ac5c814b9cf01e60f13a4c174722d33d939 (diff)
parent5216204a3f47721644a27e9dcecd5bfa6e982e58 (diff)
Merge pull request #28 from digadoo/develop
Conditionally render grid layout based on user's auth status
Diffstat (limited to 'src/pages/404.js')
-rw-r--r--src/pages/404.js26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/pages/404.js b/src/pages/404.js
index 9026548..17be31e 100644
--- a/src/pages/404.js
+++ b/src/pages/404.js
@@ -1,3 +1,23 @@
-export default function FoHunnid() {
- return <h1>this page should be a fallback - something went wrong rip</h1>
-} \ No newline at end of file
+import React, { useContext } from 'react';
+import { AuthContext } from '../providers/AuthContext';
+import GridLayout from '../layouts/GridLayout';
+
+const FoHunnid = () => {
+ const { user } = useContext(AuthContext);
+
+ return (
+ <>
+ {!user ? (
+ <h1>fo-hunnid</h1>
+ ) : (
+ <GridLayout>
+ <>
+ fo-hunnid
+ </>
+ </GridLayout>
+ )}
+ </>
+ );
+};
+
+export default FoHunnid; \ No newline at end of file