diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-24 22:58:15 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-25 11:58:27 +0200 |
| commit | 297654f58e351ac6e10c4f7c465bb62d37d4495b (patch) | |
| tree | 6b208a1e1ade0fed3341d5ce5680c4ec8b3f2522 /src/utils | |
| parent | c85ab5ad43ccf52881ee224672c41ec30021cf48 (diff) | |
build(deps): bump all dependencies
I moved the website picture from useSettings to the layout
component since it is only used here. This reduce the number
of Jest errors. However, there's still some issues with some
images import...
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/hooks/use-settings.tsx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/utils/hooks/use-settings.tsx b/src/utils/hooks/use-settings.tsx index cc5261b..a1d1a65 100644 --- a/src/utils/hooks/use-settings.tsx +++ b/src/utils/hooks/use-settings.tsx @@ -1,4 +1,3 @@ -import photo from '@assets/images/armand-philippot.jpg'; import { settings } from '@utils/config'; import { useRouter } from 'next/router'; @@ -31,21 +30,6 @@ export type LocaleSettings = { supported: string[]; }; -export type PictureSettings = { - /** - * The picture height. - */ - height: number; - /** - * The picture url. - */ - src: string; - /** - * The picture width. - */ - width: number; -}; - export type WebsiteSettings = { /** * The website name. @@ -68,10 +52,6 @@ export type WebsiteSettings = { */ locales: LocaleSettings; /** - * A picture representing the website. - */ - picture: PictureSettings; - /** * The website url. */ url: string; @@ -109,7 +89,6 @@ const useSettings = (): UseSettingsReturn => { supported: locales.supported, }, name, - picture: photo, url, }, }; |
