|
@@ -14,7 +14,7 @@ import { QueryStatus } from "react-query";
|
|
|
import { LMComment } from "../../../../data/comments";
|
|
|
import { Landmark, LMPhoto } from "../../../../data/landmarks";
|
|
|
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 { PhotoPicker } from "../../../PhotoPicker";
|
|
|
import { Separator } from "../../../Separator";
|
|
@@ -70,7 +70,7 @@ export const DetailsBody: React.FC<DetailsBodyProps> = (props) => {
|
|
|
}, [navigationState])
|
|
|
|
|
|
|
|
|
- let lmTypes = lmTypess
|
|
|
+ let lmTypes = allLmTypes
|
|
|
if(currentRoute=="Indoor") {
|
|
|
lmTypes = lmTypesIndoor
|
|
|
}
|
|
@@ -97,10 +97,12 @@ export const DetailsBody: React.FC<DetailsBodyProps> = (props) => {
|
|
|
<>
|
|
|
<Picker
|
|
|
style={{
|
|
|
- inputIOS: {color: 'white', textAlignVertical: 'center'},
|
|
|
+ inputIOS: {flexDirection: 'row', color: 'white', textAlignVertical: 'center', },
|
|
|
inputAndroid: {color: 'white', textAlignVertical: 'center'},
|
|
|
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={{}}
|
|
|
Icon={() => <FontAwesome name="chevron-down" color='white' size={20} />}
|
|
|
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>
|
|
|
</ScrollView>
|
|
|
</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>
|
|
|
)
|
|
|
}
|