mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-18 03:40:23 +01:00
fix: key warning
This commit is contained in:
@@ -1,17 +1,9 @@
|
|||||||
import React, { useMemo } from "react";
|
import React, { useMemo } from "react";
|
||||||
import {
|
import { View } from "react-native";
|
||||||
View,
|
import { useMMKVString } from "react-native-mmkv";
|
||||||
Text,
|
|
||||||
FlatList,
|
|
||||||
TouchableOpacity,
|
|
||||||
StyleSheet,
|
|
||||||
} from "react-native";
|
|
||||||
import { MMKV, useMMKVString } from "react-native-mmkv";
|
|
||||||
import { ListGroup } from "./list/ListGroup";
|
import { ListGroup } from "./list/ListGroup";
|
||||||
import { ListItem } from "./list/ListItem";
|
import { ListItem } from "./list/ListItem";
|
||||||
|
|
||||||
const storage = new MMKV();
|
|
||||||
|
|
||||||
interface Server {
|
interface Server {
|
||||||
address: string;
|
address: string;
|
||||||
}
|
}
|
||||||
@@ -37,6 +29,7 @@ export const PreviousServersList: React.FC<PreviousServersListProps> = ({
|
|||||||
<ListGroup title="previous servers" className="mt-4">
|
<ListGroup title="previous servers" className="mt-4">
|
||||||
{previousServers.map((s) => (
|
{previousServers.map((s) => (
|
||||||
<ListItem
|
<ListItem
|
||||||
|
key={s.address}
|
||||||
onPress={() => onServerSelect(s)}
|
onPress={() => onServerSelect(s)}
|
||||||
title={s.address}
|
title={s.address}
|
||||||
showArrow
|
showArrow
|
||||||
|
|||||||
Reference in New Issue
Block a user