noChargingOngoingPageComponent.tsx 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { View, Text, ScrollView, StyleSheet, ActivityIndicator } from 'react-native';
  2. import { SafeAreaView } from 'react-native-safe-area-context';
  3. import NormalButton from '../global/normal_button';
  4. import { router } from 'expo-router';
  5. const NoChargingOngoingPageComponent = () => {
  6. return (
  7. <SafeAreaView edges={['top', 'left', 'right']} className="flex-1 bg-white">
  8. <ScrollView className="flex-1 mt-8 " nestedScrollEnabled={true} showsVerticalScrollIndicator={false}>
  9. <View className="mx-[5%]">
  10. <View className="">
  11. <Text className="text-5xl pt-1 pb-6">暫無預約充電</Text>
  12. <View>
  13. <Text className="text-lg">您尚未預約任何充電服務,立刻透過下方按鈕前往預約主頁。</Text>
  14. <View className="pt-8">
  15. <NormalButton
  16. title={<Text className="text-white text-lg">前往預約頁面</Text>}
  17. onPress={() => router.push('/bookingMenuPage')}
  18. />
  19. </View>
  20. </View>
  21. </View>
  22. </View>
  23. </ScrollView>
  24. </SafeAreaView>
  25. );
  26. };
  27. const styles = StyleSheet.create({
  28. grayColor: {
  29. color: '#888888'
  30. },
  31. greenColor: {
  32. color: '#02677D'
  33. }
  34. });
  35. export default NoChargingOngoingPageComponent;