|
|
@@ -4,7 +4,7 @@
|
|
|
*/
|
|
|
import React from 'react';
|
|
|
import { View, Pressable, Image, StyleSheet } from 'react-native';
|
|
|
-import { Styles } from '../../components/Toolbar';
|
|
|
+import { BackButton, Styles } from '../../components/Toolbar';
|
|
|
import { PageList } from '../Router';
|
|
|
import BottomSiteInfo from './maps/BottomSiteInfo';
|
|
|
import Maps from './maps/Maps';
|
|
|
@@ -25,9 +25,8 @@ export default MapUI = ({
|
|
|
return (
|
|
|
<View style={ui.flex1}>
|
|
|
<View style={Styles.toolbar}>
|
|
|
- <Pressable
|
|
|
+ <BackButton
|
|
|
style={styles.navIcon}
|
|
|
- android_ripple = {rippleLess}
|
|
|
onPress={() => {
|
|
|
navigation?.toggleDrawer();
|
|
|
}}>
|
|
|
@@ -36,7 +35,7 @@ export default MapUI = ({
|
|
|
size={28}
|
|
|
color={colorPrimary}
|
|
|
style={{width: 28, height: 28, lineHeight: 28}} />
|
|
|
- </Pressable>
|
|
|
+ </BackButton>
|
|
|
<View style={styles.logoView}>
|
|
|
<Image
|
|
|
source={require('../../images/tool-logo.png')}
|
|
|
@@ -45,16 +44,15 @@ export default MapUI = ({
|
|
|
/>
|
|
|
</View>
|
|
|
{/* <Text style={ui.flex1}></Text> */}
|
|
|
- <Pressable
|
|
|
+ <BackButton
|
|
|
style={styles.navIcon}
|
|
|
- android_ripple = {rippleLess}
|
|
|
onPress={() => startPage(PageList.scanqr, {actionDetail: true})}>
|
|
|
<MaterialCommunityIcons
|
|
|
name='line-scan'
|
|
|
size={20}
|
|
|
color={colorPrimary}
|
|
|
/>
|
|
|
- </Pressable>
|
|
|
+ </BackButton>
|
|
|
</View>
|
|
|
<SearchTool
|
|
|
count={state.stopList?.length}
|