Ignore:
Timestamp:
08/20/22 21:12:04 (2 years ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Children:
2fcbde4
Parents:
702ca77
Message:

finished add post func. in react, fixed user dashboard details not loading upon login redirect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Pages/Home.js

    r702ca77 r6221ab6  
    66import AuthApi from "../api/AuthApi";
    77
    8 function Home() {
     8function Home({ user, userLoaded }) {
    99  const { auth, setAuth } = useContext(AuthApi);
    1010
     
    2424      </a>{" "}
    2525      <Search />
    26       {auth && <UserHeader />}
     26      {auth && <UserHeader user={user} userLoaded={userLoaded} />}
    2727      <div style={{ marginTop: "140px" }}></div>
    2828      <Outlet />
Note: See TracChangeset for help on using the changeset viewer.