diff --git a/src/components/Dashboard/Views/useEditModeStore.ts b/src/components/Dashboard/Views/useEditModeStore.ts index 5c9fbafc2..121c07e4c 100644 --- a/src/components/Dashboard/Views/useEditModeStore.ts +++ b/src/components/Dashboard/Views/useEditModeStore.ts @@ -1,4 +1,4 @@ -import create from 'zustand'; +import { create } from 'zustand'; interface EditModeState { enabled: boolean; diff --git a/src/components/Dashboard/Wrappers/gridstack/store.tsx b/src/components/Dashboard/Wrappers/gridstack/store.tsx index 084d9de75..52a965bfd 100644 --- a/src/components/Dashboard/Wrappers/gridstack/store.tsx +++ b/src/components/Dashboard/Wrappers/gridstack/store.tsx @@ -1,5 +1,5 @@ import { useMantineTheme } from '@mantine/core'; -import create from 'zustand'; +import { create } from 'zustand'; import { useConfigContext } from '../../../../config/provider'; import { GridstackBreakpoints } from '../../../../constants/gridstack-breakpoints'; diff --git a/src/config/store.ts b/src/config/store.ts index a3a943030..7a6971344 100644 --- a/src/config/store.ts +++ b/src/config/store.ts @@ -1,5 +1,5 @@ import axios from 'axios'; -import create from 'zustand'; +import { create } from 'zustand'; import { ConfigType } from '../types/config'; export const useConfigStore = create((set, get) => ({ diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 17c5b6966..aadf66175 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -9,6 +9,7 @@ import { } from '@mantine/core'; import React from 'react'; +import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; import Link from 'next/link'; const useStyles = createStyles((theme) => ({ @@ -93,3 +94,12 @@ export default function Custom404() { ); } + +export async function getStaticProps({ locale }: { locale: string }) { + return { + props: { + ...(await serverSideTranslations(locale, ['common'])), + // Will be passed to the page component as props + }, + }; +} diff --git a/src/tools/client/zustands/usePackageAttributesStore.ts b/src/tools/client/zustands/usePackageAttributesStore.ts index 1949cacfd..da8ff398d 100644 --- a/src/tools/client/zustands/usePackageAttributesStore.ts +++ b/src/tools/client/zustands/usePackageAttributesStore.ts @@ -1,4 +1,4 @@ -import create from 'zustand'; +import { create } from 'zustand'; import { ServerSidePackageAttributesType } from '../../server/getPackageVersion';