From 5debff0ae781aee4f03d6ad7274b2f9a6c73e99b Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 3 Jan 2021 21:39:43 +0100 Subject: [PATCH] listing modal hook --- phone/src/apps/sellout/hooks/useListingModal.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 phone/src/apps/sellout/hooks/useListingModal.ts diff --git a/phone/src/apps/sellout/hooks/useListingModal.ts b/phone/src/apps/sellout/hooks/useListingModal.ts new file mode 100644 index 0000000..47d7617 --- /dev/null +++ b/phone/src/apps/sellout/hooks/useListingModal.ts @@ -0,0 +1,7 @@ +import { useRecoilState } from "recoil"; +import {selloutState} from "./state"; + +export const useListingModal = () => { + const [ modal, setModal ] = useRecoilState(selloutState.listingModal); + return { modal, setModal } +} \ No newline at end of file