Skip to content

Commit

Permalink
Merge pull request #346 from hngprojects/feat/116-User-Dashboard-Pass…
Browse files Browse the repository at this point in the history
…word-Settings-Page

feat(116):user-dashboard-password-settings (completed password update…
  • Loading branch information
shalomtaiwo authored Jul 22, 2024
2 parents 9abe1d4 + e2567c6 commit d90fcd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
Outlet,
Scripts,
ScrollRestoration,
useLocation,
} from "@remix-run/react";
import type { ReactNode } from "react";

Expand All @@ -19,6 +20,9 @@ export const links: LinksFunction = () => [
];

export function Layout({ children }: { children: ReactNode }) {
const location = useLocation();
const pagesWithNoFooter = ["/dashboard/password-settings"];
const showFooter = !pagesWithNoFooter.includes(location.pathname);
return (
<html lang="en">
<head>
Expand All @@ -32,7 +36,7 @@ export function Layout({ children }: { children: ReactNode }) {
<main>
<Header />
{children}
<FooterLight />
{showFooter && <FooterLight />}
</main>
<ScrollRestoration />
<Scripts />
Expand Down
2 changes: 0 additions & 2 deletions app/routes/dashboard.password-settings/route.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import PasswordUpdate from "~/components/dashboard/PasswordUpdate";
import { AdminSideNavBar } from "~/components/SuperAdminSideBar/SuperAdminSideNavBar";
import Header from "~/components/ui/header";

const DaashboardPasswordSettings = () => {
return (
<>
<Header />
<div className="flex">
<AdminSideNavBar />
<PasswordUpdate />
Expand Down

0 comments on commit d90fcd9

Please sign in to comment.