Fixed build
This commit is contained in:
parent
8456268270
commit
1e2b0c25f5
src/contexts
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user