Skip to content

Commit 55ff45c

Browse files
Merge pull request #114 from deriv-com/sandeep/regression-bug-img-not-available
sandeep/fix: 🔥 fixed the footer icon
2 parents fc70b31 + 7711a13 commit 55ff45c

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333
'@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts',
3434
'@site/(.*)': '<rootDir>/$1',
3535
'\\.(css|scss|sass|less)$': 'identity-obj-proxy',
36+
'\\.(svg)$': '<rootDir>/src/__mocks__/file.mock.ts',
3637
},
3738
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'],
3839
rootDir: '.',

src/__mocks__/file.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = 'SVGMock';

src/assets/gray-logo.svg

Lines changed: 13 additions & 0 deletions
Loading

src/components/Footer/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
99
import CustomAccordion from '../CustomAccordion';
1010
import styles from './Footer.module.scss';
1111

12+
import GrayLogo from '../../assets/gray-logo.svg';
13+
1214
const Footer = () => {
1315
const {
1416
i18n: { currentLocale },
@@ -91,7 +93,9 @@ const Footer = () => {
9193
<section className={styles.FooterContainer} data-testid='footer-text'>
9294
<div className={styles.FooterBody}>
9395
<div className={styles.LogoWrapper}>
94-
<img src='img/gray-logo.svg' alt='Deriv API Logo' className={styles.FooterLogo} />
96+
<div className={styles.FooterLogo}>
97+
<GrayLogo />
98+
</div>
9599
</div>
96100
<div className={styles.FooterSection}>
97101
<section className={styles.Section1} data-testid='API-section'>

0 commit comments

Comments
 (0)