Skip to content

Commit 72c773e

Browse files
fix(brand): make Academy logo visible in light mode (#8211)
Signed-off-by: Ayush Kumar Mishra <bitumishra30@gmail.com>
1 parent e0e3734 commit 72c773e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/sections/Company/Brand/Brand-components

‎src/sections/Company/Brand/Brand-components/academy.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import React, { useContext } from "react";
22
import styled from "styled-components";
33
import { SRLWrapper } from "simple-react-lightbox";
44
import { Row, Col } from "../../../../reusecore/Layout";
@@ -7,6 +7,7 @@ import ColorBox from "../../../../components/ColorBox";
77
import { FiDownloadCloud } from "@react-icons/all-files/fi/FiDownloadCloud";
88
import AcademyIcon from "../../../../assets/images/academy/academy-layer5.svg";
99
import AcademyLight from "../../../../assets/images/academy/academy-layer5-light.svg";
10+
import { ThemeManagerContext } from "../../../../theme/app/ThemeManager";
1011

1112
const AcademyWrapper = styled.section`
1213
@media (max-width: 575px) {
@@ -17,6 +18,7 @@ const AcademyWrapper = styled.section`
1718
`;
1819

1920
const 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>

0 commit comments

Comments
 (0)