|
@@ -5,13 +5,11 @@ import {
|
|
|
ScrollView,
|
|
ScrollView,
|
|
|
Pressable,
|
|
Pressable,
|
|
|
Image,
|
|
Image,
|
|
|
- Dimensions,
|
|
|
|
|
- StyleSheet
|
|
|
|
|
|
|
+ Dimensions
|
|
|
} from 'react-native';
|
|
} from 'react-native';
|
|
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
|
import { PreviousPageBlackSvg, StarSvg } from '../global/SVG';
|
|
import { PreviousPageBlackSvg, StarSvg } from '../global/SVG';
|
|
|
import NormalButton from '../global/normal_button';
|
|
import NormalButton from '../global/normal_button';
|
|
|
-import { useState } from 'react';
|
|
|
|
|
|
|
|
|
|
const ManageVehiclePageComponent = () => {
|
|
const ManageVehiclePageComponent = () => {
|
|
|
const { height: deviceHeight, width: deviceWidth } =
|
|
const { height: deviceHeight, width: deviceWidth } =
|
|
@@ -87,12 +85,10 @@ const ManageVehiclePageComponent = () => {
|
|
|
設置為預設車輛 <StarSvg />
|
|
設置為預設車輛 <StarSvg />
|
|
|
</Text>
|
|
</Text>
|
|
|
}
|
|
}
|
|
|
- // onPress={() => router.push(addVehicleSuccessful)}
|
|
|
|
|
- onPress={() => console.log('ab')}
|
|
|
|
|
|
|
+ onPress={() => console.log('設置為預設車輛')}
|
|
|
extendedStyle={{ marginTop: 24 }}
|
|
extendedStyle={{ marginTop: 24 }}
|
|
|
/>
|
|
/>
|
|
|
<View className="w-full h-1 my-4 bg-[#DBE4E8]" />
|
|
<View className="w-full h-1 my-4 bg-[#DBE4E8]" />
|
|
|
-
|
|
|
|
|
<View>
|
|
<View>
|
|
|
<Text className="text-xl pb-4">車輛資訊</Text>
|
|
<Text className="text-xl pb-4">車輛資訊</Text>
|
|
|
<Text className="text-base text-[#888888]">加入日期</Text>
|
|
<Text className="text-base text-[#888888]">加入日期</Text>
|
|
@@ -114,7 +110,7 @@ const ManageVehiclePageComponent = () => {
|
|
|
删除車輛
|
|
删除車輛
|
|
|
</Text>
|
|
</Text>
|
|
|
}
|
|
}
|
|
|
- onPress={() => router.replace('mainPage')}
|
|
|
|
|
|
|
+ onPress={() => console.log('删除車輛')}
|
|
|
extendedStyle={{
|
|
extendedStyle={{
|
|
|
backgroundColor: '#D40000'
|
|
backgroundColor: '#D40000'
|
|
|
}}
|
|
}}
|
|
@@ -126,18 +122,4 @@ const ManageVehiclePageComponent = () => {
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const styles = StyleSheet.create({
|
|
|
|
|
- button: { flex: 1, gap: 10, marginTop: 5 },
|
|
|
|
|
- fakeTextInput: {
|
|
|
|
|
- maxWidth: '100%',
|
|
|
|
|
- fontSize: 16,
|
|
|
|
|
- borderWidth: 1,
|
|
|
|
|
- padding: 20,
|
|
|
|
|
- borderRadius: 12,
|
|
|
|
|
- borderColor: '#bbbbbb'
|
|
|
|
|
- },
|
|
|
|
|
- checkbox: {
|
|
|
|
|
- margin: 8
|
|
|
|
|
- }
|
|
|
|
|
-});
|
|
|
|
|
export default ManageVehiclePageComponent;
|
|
export default ManageVehiclePageComponent;
|