File tree Expand file tree Collapse file tree
src/sections/Company/Brand/Brand-components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React from "react" ;
1+ import React , { useContext } from "react" ;
22import styled from "styled-components" ;
33import { SRLWrapper } from "simple-react-lightbox" ;
44import { Row , Col } from "../../../../reusecore/Layout" ;
@@ -7,6 +7,7 @@ import ColorBox from "../../../../components/ColorBox";
77import { FiDownloadCloud } from "@react-icons/all-files/fi/FiDownloadCloud" ;
88import AcademyIcon from "../../../../assets/images/academy/academy-layer5.svg" ;
99import AcademyLight from "../../../../assets/images/academy/academy-layer5-light.svg" ;
10+ import { ThemeManagerContext } from "../../../../theme/app/ThemeManager" ;
1011
1112const AcademyWrapper = styled . section `
1213 @media (max-width: 575px) {
@@ -17,6 +18,7 @@ const AcademyWrapper = styled.section`
1718` ;
1819
1920const AcademyBrand = ( ) => {
21+ const { isDark } = useContext ( ThemeManagerContext ) ;
2022 return (
2123 < AcademyWrapper >
2224 < div className = "post-content" >
@@ -62,7 +64,7 @@ const AcademyBrand = () => {
6264 < img src = { AcademyIcon } style = { { minWidth : "200px" } } alt = "Academy Logo" />
6365 </ Col >
6466 < Col $xs = { 12 } $sm = { 4 } >
65- < img src = { AcademyLight } style = { { minWidth : "200px" } } alt = "AcademyLight Logo" />
67+ < img src = { isDark ? AcademyLight : AcademyIcon } style = { { minWidth : "200px" } } alt = { isDark ? "AcademyLight Logo" : "Academy Logo" } />
6668 </ Col >
6769 </ Row >
6870 </ SRLWrapper >
You can’t perform that action at this time.
0 commit comments