|
@@ -14,7 +14,7 @@ import { QueryStatus } from "react-query";
|
|
import { LMComment } from "../../../../data/comments";
|
|
import { LMComment } from "../../../../data/comments";
|
|
import { Landmark, LMPhoto } from "../../../../data/landmarks";
|
|
import { Landmark, LMPhoto } from "../../../../data/landmarks";
|
|
import { MainTabsNavigationProp } from "../../../../navigation/MainTabsNavigator";
|
|
import { MainTabsNavigationProp } from "../../../../navigation/MainTabsNavigator";
|
|
-import { lmTypes as lmTypess , lmTypesIndoor } from "../../../../utils/GlobalUtils";
|
|
|
|
|
|
+import { lmTypes as allLmTypes , lmTypesIndoor } from "../../../../utils/GlobalUtils";
|
|
import { IconButton, PrimaryButton } from "../../../Buttons";
|
|
import { IconButton, PrimaryButton } from "../../../Buttons";
|
|
import { PhotoPicker } from "../../../PhotoPicker";
|
|
import { PhotoPicker } from "../../../PhotoPicker";
|
|
import { Separator } from "../../../Separator";
|
|
import { Separator } from "../../../Separator";
|
|
@@ -70,7 +70,7 @@ export const DetailsBody: React.FC<DetailsBodyProps> = (props) => {
|
|
}, [navigationState])
|
|
}, [navigationState])
|
|
|
|
|
|
|
|
|
|
- let lmTypes = lmTypess
|
|
|
|
|
|
+ let lmTypes = allLmTypes
|
|
if(currentRoute=="Indoor") {
|
|
if(currentRoute=="Indoor") {
|
|
lmTypes = lmTypesIndoor
|
|
lmTypes = lmTypesIndoor
|
|
}
|
|
}
|
|
@@ -97,10 +97,12 @@ export const DetailsBody: React.FC<DetailsBodyProps> = (props) => {
|
|
<>
|
|
<>
|
|
<Picker
|
|
<Picker
|
|
style={{
|
|
style={{
|
|
- inputIOS: {color: 'white', textAlignVertical: 'center'},
|
|
|
|
|
|
+ inputIOS: {flexDirection: 'row', color: 'white', textAlignVertical: 'center', },
|
|
inputAndroid: {color: 'white', textAlignVertical: 'center'},
|
|
inputAndroid: {color: 'white', textAlignVertical: 'center'},
|
|
iconContainer: {flex: 1, justifyContent: 'center', height: '100%'},
|
|
iconContainer: {flex: 1, justifyContent: 'center', height: '100%'},
|
|
- viewContainer: {padding: 5, elevation: 1, flex: 1, justifyContent: 'center'}, placeholder: {color: 'white'}}}
|
|
|
|
|
|
+ inputIOSContainer: {},
|
|
|
|
+ viewContainer: { padding: 5, elevation: 1, flex: 1, marginTop: 5},
|
|
|
|
+ placeholder: {color: 'white'}}}
|
|
placeholder={{}}
|
|
placeholder={{}}
|
|
Icon={() => <FontAwesome name="chevron-down" color='white' size={20} />}
|
|
Icon={() => <FontAwesome name="chevron-down" color='white' size={20} />}
|
|
value={props.updatedLandmark?.landmark_type}
|
|
value={props.updatedLandmark?.landmark_type}
|
|
@@ -132,7 +134,7 @@ export const DetailsBody: React.FC<DetailsBodyProps> = (props) => {
|
|
<Text style={{color: 'white', fontSize: 13}}>{props.landmark?.description}</Text>
|
|
<Text style={{color: 'white', fontSize: 13}}>{props.landmark?.description}</Text>
|
|
</ScrollView>
|
|
</ScrollView>
|
|
</View>
|
|
</View>
|
|
- {props.landmark?.landmark_type ? <Image source={lmTypes[props.landmark?.landmark_type].image} /> : null}
|
|
|
|
|
|
+ {props.landmark?.landmark_type ? <Image source={lmTypes[props.landmark?.landmark_type]?.image} /> : null}
|
|
</View>
|
|
</View>
|
|
)
|
|
)
|
|
}
|
|
}
|