From 1e2b0c25f5f550c28f5010ba2973cc604c826a98 Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 4 Nov 2022 01:54:52 +0100 Subject: [PATCH] Fixed build --- src/contexts/LightBoxProvider.tsx | 4 ++-- src/contexts/atoms.ts | 2 +- src/contexts/localData.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contexts/LightBoxProvider.tsx b/src/contexts/LightBoxProvider.tsx index a0b5e97..ca36116 100644 --- a/src/contexts/LightBoxProvider.tsx +++ b/src/contexts/LightBoxProvider.tsx @@ -6,7 +6,7 @@ import { LightBox } from "components/LightBox"; import { filterDefined } from "helpers/others"; import { atomPairing, useAtomSetter } from "helpers/atoms"; -export const lightBoxAtom = atomPairing( +const lightBoxAtom = atomPairing( atom<{ showLightBox: ( images: (UploadImageFragment | string | null | undefined)[], @@ -15,7 +15,7 @@ export const lightBoxAtom = atomPairing( }>({ showLightBox: () => null }) ); -export const lightBox = lightBoxAtom[0] +export const lightBox = lightBoxAtom[0]; export const LightBoxProvider = (): JSX.Element => { const [isLightBoxVisible, setLightBoxVisibility] = useState(false); diff --git a/src/contexts/atoms.ts b/src/contexts/atoms.ts index 0f75d64..8c2d790 100644 --- a/src/contexts/atoms.ts +++ b/src/contexts/atoms.ts @@ -6,7 +6,7 @@ import { atomPairing } from "helpers/atoms"; import { settings } from "contexts/settings"; import { lightBox } from "contexts/LightBoxProvider"; -/* +/* * I'm getting a weird error if I put those atoms in appLayout.ts * So I'm putting the atoms here. Sucks, I know. */ diff --git a/src/contexts/localData.ts b/src/contexts/localData.ts index 1654857..be54704 100644 --- a/src/contexts/localData.ts +++ b/src/contexts/localData.ts @@ -1,6 +1,6 @@ import { atom } from "jotai"; import { useRouter } from "next/router"; -import React, { useEffect } from "react"; +import { useEffect } from "react"; import { useFetch } from "usehooks-ts"; import { atomPairing, useAtomSetter } from "helpers/atoms"; import {