diff options
author | Jeff Kleinaitis <jeffkleinaitis@gmail.com> | 2024-04-19 14:30:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 14:30:56 -0700 |
commit | 5b96af38b9761076845fb81fd0946002e4867bc0 (patch) | |
tree | b81c462abce458c32d2f62f963e5d2439753531e /src/pages/Careers.js | |
parent | 0af66ac5c814b9cf01e60f13a4c174722d33d939 (diff) | |
parent | 5216204a3f47721644a27e9dcecd5bfa6e982e58 (diff) |
Merge pull request #28 from digadoo/develop
Conditionally render grid layout based on user's auth status
Diffstat (limited to 'src/pages/Careers.js')
-rw-r--r-- | src/pages/Careers.js | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/pages/Careers.js b/src/pages/Careers.js index 2b88706..889695c 100644 --- a/src/pages/Careers.js +++ b/src/pages/Careers.js @@ -1,3 +1,23 @@ -export default function Careers() { - return <h1>we cant even get jobs, how we gonna employee you??</h1> -}
\ No newline at end of file +import React, { useContext } from 'react'; +import { AuthContext } from '../providers/AuthContext'; +import GridLayout from '../layouts/GridLayout'; + +const Careers = () => { + const { user } = useContext(AuthContext); + + return ( + <> + {!user ? ( + <h1>we cant even get jobs, how we gonna employee you??</h1> + ) : ( + <GridLayout> + <> + we cant even get jobs, how we gonna employee you?? + </> + </GridLayout> + )} + </> + ); +}; + +export default Careers;
\ No newline at end of file |