mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
Updates branding and naming conventions to use "Seerr" instead of "Jellyseerr" across all files, components, hooks, and translations. Renames files, functions, classes, variables, and UI text to reflect the new naming convention while maintaining identical functionality. Updates asset references including logo and screenshot images. Changes API class name, storage keys, atom names, and all related utilities to use "Seerr" prefix. Modifies translation keys and user-facing text to match the rebrand.
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { FlashList } from "@shopify/flash-list";
|
|
import type React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import { View, type ViewProps } from "react-native";
|
|
import { Text } from "@/components/common/Text";
|
|
import PersonPoster from "@/components/seerr/PersonPoster";
|
|
import type { MovieDetails } from "@/utils/jellyseerr/server/models/Movie";
|
|
import type { TvDetails } from "@/utils/jellyseerr/server/models/Tv";
|
|
|
|
const CastSlide: React.FC<
|
|
{ details?: MovieDetails | TvDetails } & ViewProps
|
|
> = ({ details, ...props }) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
details?.credits?.cast &&
|
|
details?.credits?.cast?.length > 0 && (
|
|
<View {...props}>
|
|
<Text className='text-lg font-bold mb-2 px-4'>{t("seerr.cast")}</Text>
|
|
<FlashList
|
|
horizontal
|
|
showsHorizontalScrollIndicator={false}
|
|
data={details?.credits.cast}
|
|
ItemSeparatorComponent={() => <View className='w-2' />}
|
|
keyExtractor={(item) => item?.id?.toString()}
|
|
contentContainerStyle={{ paddingHorizontal: 16 }}
|
|
renderItem={({ item }) => (
|
|
<PersonPoster
|
|
id={item.id.toString()}
|
|
posterPath={item.profilePath}
|
|
name={item.name}
|
|
subName={item.character}
|
|
/>
|
|
)}
|
|
/>
|
|
</View>
|
|
)
|
|
);
|
|
};
|
|
|
|
export default CastSlide;
|