mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update to React 18
This commit is contained in:
parent
b5d6e37fb3
commit
be891c3a98
36 changed files with 339 additions and 311 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { type FC } from 'react';
|
||||
import React, { type FC, type PropsWithChildren } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
|
||||
interface ListContentWrapperProps {
|
||||
|
@ -7,7 +7,7 @@ interface ListContentWrapperProps {
|
|||
enableOverview?: boolean;
|
||||
}
|
||||
|
||||
const ListContentWrapper: FC<ListContentWrapperProps> = ({
|
||||
const ListContentWrapper: FC<PropsWithChildren<ListContentWrapperProps>> = ({
|
||||
itemOverview,
|
||||
enableContentWrapper,
|
||||
enableOverview,
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import React, { type FC } from 'react';
|
||||
import React, { type FC, type PropsWithChildren } from 'react';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
interface ListGroupHeaderWrapperProps {
|
||||
index?: number;
|
||||
}
|
||||
|
||||
const ListGroupHeaderWrapper: FC<ListGroupHeaderWrapperProps> = ({
|
||||
const ListGroupHeaderWrapper: FC<PropsWithChildren<ListGroupHeaderWrapperProps>> = ({
|
||||
index,
|
||||
children
|
||||
}) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, { type FC } from 'react';
|
||||
import React, { type FC, type PropsWithChildren } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
|
@ -7,7 +7,7 @@ interface ListTextWrapperProps {
|
|||
isLargeStyle?: boolean;
|
||||
}
|
||||
|
||||
const ListTextWrapper: FC<ListTextWrapperProps> = ({
|
||||
const ListTextWrapper: FC<PropsWithChildren<ListTextWrapperProps>> = ({
|
||||
index,
|
||||
isLargeStyle,
|
||||
children
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import classNames from 'classnames';
|
||||
import React, { type FC } from 'react';
|
||||
import React, { type FC, type PropsWithChildren } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import layoutManager from '../../layoutManager';
|
||||
|
@ -13,7 +13,7 @@ interface ListWrapperProps {
|
|||
className?: string;
|
||||
}
|
||||
|
||||
const ListWrapper: FC<ListWrapperProps> = ({
|
||||
const ListWrapper: FC<PropsWithChildren<ListWrapperProps>> = ({
|
||||
index,
|
||||
action,
|
||||
title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue