user route for getting friendships

This commit is contained in:
Mikayla Dobson
2022-11-23 11:20:44 -06:00
parent d2d38bf7dd
commit d984ea64eb
15 changed files with 112 additions and 13 deletions

View File

@@ -7,13 +7,14 @@ import Protect from "../../util/Protect";
export default function Profile() {
const [message, setMessage] = useState<JSX.Element>();
const { user } = useContext(AuthContext);
// const { user } = useAuthContext();
const { user } = useAuthContext();
const navigate = useNavigate();
return (
<Protect>
<div className="profile-authenticated">
<h1>{user!.firstname}'s Profile</h1>
<h1>{user?.firstname}'s Profile</h1>
<p>Things and stuff!</p>
</div>
</Protect>