From f0ce7acbb4314fcfaf28a590cfc60bba3378669e Mon Sep 17 00:00:00 2001 From: Eleftheria Papageorgiou Date: Tue, 11 Jun 2024 00:57:20 +0300 Subject: [PATCH] landing page laways light theme --- front-end/src/views/landing-page/LandingPage.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/front-end/src/views/landing-page/LandingPage.tsx b/front-end/src/views/landing-page/LandingPage.tsx index 6591267..a97ddb6 100644 --- a/front-end/src/views/landing-page/LandingPage.tsx +++ b/front-end/src/views/landing-page/LandingPage.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect } from 'react'; import PageContainer from 'src/components/container/PageContainer'; import Banner from 'src/components/landingpage/banner/Banner'; import AboutFossbot from 'src/components/landingpage/colorContainerFossbot/AboutFossbot'; @@ -7,19 +7,27 @@ import Footer from 'src/components/landingpage/footer/Footer'; import LpHeader from 'src/components/landingpage/header/Header'; import PlatformCard from 'src/components/landingpage/card_fossbot/CardPlatform'; import FossbotCard from 'src/components/landingpage/card_fossbot/CardFossbot'; +import { AppDispatch } from 'src/store/Store'; +import { useDispatch } from 'react-redux'; +import { setDarkMode } from 'src/store/customizer/CustomizerSlice'; import { useTranslation } from 'react-i18next'; const Landingpage = () => { const { t } = useTranslation(); + const dispatch = useDispatch(); + + useEffect(() => { + dispatch(setDarkMode('light')); + }, [dispatch]); return ( - {/* */} + {/* */} - + {/* */} {/* */}