diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-06-02 23:51:43 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-03 11:54:08 +0200 |
| commit | fc7a6e98268d34f313d79c817e38c09ad6cde960 (patch) | |
| tree | 1b859015ef5e52b2c7c4e7521f428fb2215df21d /src/components/templates/layout/layout.tsx | |
| parent | e4325dbc5a8c5c9032488691391dcf310dea12ac (diff) | |
test(unit): fix Jest errors due to images import
I mocked some SVG files and moves the branding photo to public
directory. It is more a workaround than a real fix but it works so...
Diffstat (limited to 'src/components/templates/layout/layout.tsx')
| -rw-r--r-- | src/components/templates/layout/layout.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/templates/layout/layout.tsx b/src/components/templates/layout/layout.tsx index 982b099..693951e 100644 --- a/src/components/templates/layout/layout.tsx +++ b/src/components/templates/layout/layout.tsx @@ -1,4 +1,3 @@ -import photo from '@assets/images/armand-philippot.jpg'; import ButtonLink from '@components/atoms/buttons/button-link'; import Career from '@components/atoms/icons/career'; import CCBySA from '@components/atoms/icons/cc-by-sa'; @@ -18,6 +17,7 @@ import Script from 'next/script'; import { FC, ReactElement, ReactNode, useRef, useState } from 'react'; import { useIntl } from 'react-intl'; import { Person, SearchAction, WebSite, WithContext } from 'schema-dts'; +import photo from '/public/armand-philippot.jpg'; import styles from './layout.module.scss'; export type QueryAction = SearchAction & { |
