From f922e1650df550b3dec2f010ffdc6c15ea11390d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 15 Mar 2024 16:34:42 +0000 Subject: fix(mobile): Bump expo-share-intent version and remove the hacks around the old version --- apps/mobile/lib/last-shared-intent.ts | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 apps/mobile/lib/last-shared-intent.ts (limited to 'apps/mobile/lib') diff --git a/apps/mobile/lib/last-shared-intent.ts b/apps/mobile/lib/last-shared-intent.ts deleted file mode 100644 index 951bcf74..00000000 --- a/apps/mobile/lib/last-shared-intent.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { create } from "zustand"; - -interface LastSharedIntent { - lastIntent: string; - setIntent: (intent: string) => void; - isPreviouslyShared: (intent: string) => boolean; -} - -export const useLastSharedIntent = create((set, get) => ({ - lastIntent: "", - setIntent: (intent: string) => set({ lastIntent: intent }), - isPreviouslyShared: (intent: string) => { - return get().lastIntent === intent; - }, -})); -- cgit v1.2.3-70-g09d2