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