Skip to content

Commit

Permalink
feat(116):user-dashboard-password-settings (completed password update…
Browse files Browse the repository at this point in the history
… functionality-finalv0.8:resolved-footer-display)
  • Loading branch information
shalomtaiwo authored and Lftobs committed Jul 22, 2024
2 parents 61d13ca + 4b324a9 commit e2567c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/components/pages/home/ImageSlider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { A11y, Autoplay, EffectFade } from "swiper/modules";
import { A11y, Autoplay } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react";

import "swiper/css";
Expand All @@ -14,9 +14,8 @@ const ImageSlider = () => {
delay: 2500,
disableOnInteraction: false,
}}
effect={"fade"}
speed={3000}
modules={[Autoplay, EffectFade, A11y]}
modules={[Autoplay, A11y]}
className="mySwiper md:rounded-lg"
>
<SwiperSlide className="w-full">
Expand Down
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 e2567c6

Please sign in to comment.