diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-15 16:34:42 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-15 16:34:42 +0000 |
| commit | f922e1650df550b3dec2f010ffdc6c15ea11390d (patch) | |
| tree | d09c3ce868429c84473f7aa5f450d75521ee7162 /apps/mobile/lib | |
| parent | 49f44900cb553905bdb565ae12cb09676d93d4fc (diff) | |
| download | karakeep-f922e1650df550b3dec2f010ffdc6c15ea11390d.tar.zst | |
fix(mobile): Bump expo-share-intent version and remove the hacks around the old version
Diffstat (limited to 'apps/mobile/lib')
| -rw-r--r-- | apps/mobile/lib/last-shared-intent.ts | 15 |
1 files changed, 0 insertions, 15 deletions
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<LastSharedIntent>((set, get) => ({ - lastIntent: "", - setIntent: (intent: string) => set({ lastIntent: intent }), - isPreviouslyShared: (intent: string) => { - return get().lastIntent === intent; - }, -})); |
