Skip to content

Commit

Permalink
Merge pull request deriv-com#114 from deriv-com/sandeep/regression-bu…
Browse files Browse the repository at this point in the history
…g-img-not-available

sandeep/fix: 🔥 fixed the footer icon
  • Loading branch information
sandeep-deriv authored Sep 3, 2024
2 parents fc70b31 + 7711a13 commit 55ff45c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = {
'@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts',
'@site/(.*)': '<rootDir>/$1',
'\\.(css|scss|sass|less)$': 'identity-obj-proxy',
'\\.(svg)$': '<rootDir>/src/__mocks__/file.mock.ts',
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'],
rootDir: '.',
Expand Down
1 change: 1 addition & 0 deletions src/__mocks__/file.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 'SVGMock';
13 changes: 13 additions & 0 deletions src/assets/gray-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import CustomAccordion from '../CustomAccordion';
import styles from './Footer.module.scss';

import GrayLogo from '../../assets/gray-logo.svg';

const Footer = () => {
const {
i18n: { currentLocale },
Expand Down Expand Up @@ -91,7 +93,9 @@ const Footer = () => {
<section className={styles.FooterContainer} data-testid='footer-text'>
<div className={styles.FooterBody}>
<div className={styles.LogoWrapper}>
<img src='img/gray-logo.svg' alt='Deriv API Logo' className={styles.FooterLogo} />
<div className={styles.FooterLogo}>
<GrayLogo />
</div>
</div>
<div className={styles.FooterSection}>
<section className={styles.Section1} data-testid='API-section'>
Expand Down

0 comments on commit 55ff45c

Please sign in to comment.