diff --git a/jest.config.js b/jest.config.js index b2e090aaa..c59c23c6d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -33,6 +33,7 @@ module.exports = { '@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts', '@site/(.*)': '/$1', '\\.(css|scss|sass|less)$': 'identity-obj-proxy', + '\\.(svg)$': '/src/__mocks__/file.mock.ts', }, moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'], rootDir: '.', diff --git a/src/__mocks__/file.mock.ts b/src/__mocks__/file.mock.ts new file mode 100644 index 000000000..533beda47 --- /dev/null +++ b/src/__mocks__/file.mock.ts @@ -0,0 +1 @@ +module.exports = 'SVGMock'; diff --git a/src/assets/gray-logo.svg b/src/assets/gray-logo.svg new file mode 100644 index 000000000..0ae29bacb --- /dev/null +++ b/src/assets/gray-logo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index b946f10d5..76763e254 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -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 }, @@ -91,7 +93,9 @@ const Footer = () => {
- Deriv API Logo +
+ +