ソースを参照

remove scaffolding for grouped landmark tips/alert

aidan 1 年間 前
コミット
e9bb39157b
2 ファイル変更0 行追加17 行削除
  1. 0 13
      src/components/Map/Panels/AddLandmarkPanel.tsx
  2. 0 4
      src/data/profiles.ts

+ 0 - 13
src/components/Map/Panels/AddLandmarkPanel.tsx

@@ -196,19 +196,6 @@ const AddLandmarkPanel: React.FC<AddLandmarkProps> = ({ newLandmark, setNewLandm
         }
         else {
             await addLandmarkMutation.mutateAsync({ landmarkValue: newLandmark, photos: photos, newGroup: {bool: newGroupBool, sibling: siblingID} })
-            if (newLandmark?.landmark_type == 30) {
-                if (profile?.show_group_lm_tip) {
-                    console.log('[Profile]: User has group tips configured, showing tips.')
-                    Alert.alert(
-                        'New landmark group added!', 
-                        "Please navigate to the new group and add individual landmarks.", 
-                        [{text: "Don't show this again", onPress: async () => await toggleGroupLMTip.mutateAsync()}, {text: 'Ok'}]
-                    )   
-                }
-                else {
-                    console.log('[Profile]: User does not have group tips configured, not showing tips')
-                }
-            }
         }
 
 

+ 0 - 4
src/data/profiles.ts

@@ -39,10 +39,6 @@ export interface UserProfile {
      * The user's preference for seeing tips.
      */
     show_tips?: boolean
-    /**
-     * The user's preference for seeing a tip when adding a group landmark.
-     */
-    show_group_lm_tip?: boolean
 }
 
 /**