暫定型移行

This commit is contained in:
harukin-expo-dev-env 2025-03-11 05:16:35 +00:00
parent bc3aca8c41
commit 5d89747c03
2 changed files with 14 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import React, { useEffect } from "react";
import React, { FC, useEffect } from "react";
import { View, Text, ScrollView } from "react-native";
import Icon from "react-native-vector-icons/Entypo";
@ -8,7 +8,7 @@ import { useNavigation } from "@react-navigation/native";
import { useTrainMenu } from "../stateBox/useTrainMenu";
import { FavoriteListItem } from "./atom/FavoriteListItem";
import { BigButton } from "./atom/BigButton";
export default function FavoriteList() {
export const FavoriteList: FC = () => {
const { favoriteStation } = useFavoriteStation();
const { webview } = useCurrentTrain();
const { navigate, addListener, goBack, canGoBack } = useNavigation();
@ -92,4 +92,4 @@ export default function FavoriteList() {
<BigButton onPress={() => goBack()} string="閉じる" />
</View>
);
}
};

View File

@ -1,8 +1,17 @@
import React from "react";
import React, { FC } from "react";
import { View, Text, TouchableOpacity } from "react-native";
import lineColorList from "../../assets/originData/lineColorList";
export const FavoriteListItem = ({ currentStation, children, onPress }) => {
type Props = {
currentStation: {
Station_JP: string;
StationNumber: string;
}[];
onPress: () => void;
children: React.ReactNode;
}
export const FavoriteListItem:FC<Props> = ({ currentStation, children, onPress }) => {
const lineIDs = [];
const EachIDs = [];
currentStation.forEach((d) => {