mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-02 04:39:14 -05:00
chore(deps): update react to 18 (#2943)
This commit is contained in:
@@ -4,7 +4,7 @@ interface PlaceholderProps {
|
||||
canExpand?: boolean;
|
||||
}
|
||||
|
||||
const Placeholder: React.FC<PlaceholderProps> = ({ canExpand = false }) => {
|
||||
const Placeholder = ({ canExpand = false }: PlaceholderProps) => {
|
||||
return (
|
||||
<div
|
||||
className={`relative animate-pulse rounded-xl bg-gray-700 ${
|
||||
|
||||
@@ -14,7 +14,7 @@ const isMovie = (movie: MovieDetails | TvDetails): movie is MovieDetails => {
|
||||
return (movie as MovieDetails).title !== undefined;
|
||||
};
|
||||
|
||||
const TmdbTitleCard: React.FC<TmdbTitleCardProps> = ({ tmdbId, type }) => {
|
||||
const TmdbTitleCard = ({ tmdbId, type }: TmdbTitleCardProps) => {
|
||||
const { ref, inView } = useInView({
|
||||
triggerOnce: true,
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@ interface TitleCardProps {
|
||||
inProgress?: boolean;
|
||||
}
|
||||
|
||||
const TitleCard: React.FC<TitleCardProps> = ({
|
||||
const TitleCard = ({
|
||||
id,
|
||||
image,
|
||||
summary,
|
||||
@@ -39,7 +39,7 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
||||
mediaType,
|
||||
inProgress = false,
|
||||
canExpand = false,
|
||||
}) => {
|
||||
}: TitleCardProps) => {
|
||||
const isTouch = useIsTouch();
|
||||
const intl = useIntl();
|
||||
const { hasPermission } = useUser();
|
||||
|
||||
Reference in New Issue
Block a user