Fixed build

This commit is contained in:
DrMint 2022-11-04 01:54:52 +01:00
parent 8456268270
commit 1e2b0c25f5
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import { LightBox } from "components/LightBox";
import { filterDefined } from "helpers/others"; import { filterDefined } from "helpers/others";
import { atomPairing, useAtomSetter } from "helpers/atoms"; import { atomPairing, useAtomSetter } from "helpers/atoms";
export const lightBoxAtom = atomPairing( const lightBoxAtom = atomPairing(
atom<{ atom<{
showLightBox: ( showLightBox: (
images: (UploadImageFragment | string | null | undefined)[], images: (UploadImageFragment | string | null | undefined)[],
@ -15,7 +15,7 @@ export const lightBoxAtom = atomPairing(
}>({ showLightBox: () => null }) }>({ showLightBox: () => null })
); );
export const lightBox = lightBoxAtom[0] export const lightBox = lightBoxAtom[0];
export const LightBoxProvider = (): JSX.Element => { export const LightBoxProvider = (): JSX.Element => {
const [isLightBoxVisible, setLightBoxVisibility] = useState(false); const [isLightBoxVisible, setLightBoxVisibility] = useState(false);

View File

@ -1,6 +1,6 @@
import { atom } from "jotai"; import { atom } from "jotai";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import React, { useEffect } from "react"; import { useEffect } from "react";
import { useFetch } from "usehooks-ts"; import { useFetch } from "usehooks-ts";
import { atomPairing, useAtomSetter } from "helpers/atoms"; import { atomPairing, useAtomSetter } from "helpers/atoms";
import { import {