summaryrefslogtreecommitdiffstats
path: root/src/components/Layouts/Layout.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-01 22:08:56 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-01 22:08:56 +0100
commit80d54805e26a6a6971c5ad214b02456dcc226628 (patch)
tree9b81e0cd3ff881b2cbeb81f9f96b52b510d67646 /src/components/Layouts/Layout.tsx
parent99ae0a9d3a923ca1e998dc9b504dad607fdfd768 (diff)
parent8bd9784acdee6871ad70e86d0d7120299bf76969 (diff)
refactor: various refactoring
Improve maintenance (meta splitting) and try to improve performance (dynamic imports).
Diffstat (limited to 'src/components/Layouts/Layout.tsx')
-rw-r--r--src/components/Layouts/Layout.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx
index 845d6fa..23c1d0e 100644
--- a/src/components/Layouts/Layout.tsx
+++ b/src/components/Layouts/Layout.tsx
@@ -19,9 +19,8 @@ const Layout = ({
isHome?: boolean;
}) => {
const intl = useIntl();
- const { locale } = useRouter();
+ const { asPath, locale } = useRouter();
const ref = useRef<HTMLSpanElement>(null);
- const { asPath } = useRouter();
useEffect(() => {
ref.current?.focus();