Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yami/pet profile UI #96

Closed
wants to merge 19 commits into from
8 changes: 8 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Landing from "./Landing";
import Loading from "./Loading";
import NotFound from "./NotFound";
import SignUp from "./SignUp";
import PetProfiles from "./PetProfiles";


const ProtectedRoute = ({ children }: React.PropsWithChildren<unknown>) => {
const { authenticationState } = useContext(AuthContext);
Expand Down Expand Up @@ -85,6 +87,12 @@ const AppRouter = () => {
</ProtectedRoute>
}
/>
<Route
path="pet-profiles"
element={
<PetProfiles />
}
/>
<Route path="*" element={<NotFound />} />
</Routes>
);
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AuthCtx } from "./auth/AuthProvider";
import { ROUTES } from "./constants";
import FurBabyLogo from "./FurbabyLogo";
import Profile from "./Profile";
import PetProfiles from './PetProfiles';
import Settings from "./Settings";
import { classNames } from "./utils";

Expand All @@ -19,7 +20,7 @@ const user = {
const navigation = [
{ name: "Dashboard", href: "#", current: true },
{ name: "Job Feed", href: "#", current: false },
{ name: "Pet Profiles", href: "#", current: false },
{ name: "Pet Profiles", href: ROUTES.PROTECTED_ROUTES.PET_PROFILES, current: true },
];

type HomeProps = {
Expand Down Expand Up @@ -83,6 +84,7 @@ const Home = (props: React.PropsWithChildren<HomeProps>) => {
/>
);
}

return "Nothing here to display";
}, [pathname]);

Expand Down
Loading