1
0
Fork 0
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:
grafixeyehero 2024-06-02 20:58:11 +03:00
parent b5d6e37fb3
commit be891c3a98
36 changed files with 339 additions and 311 deletions

View file

@ -4,7 +4,7 @@ import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import Toolbar from '@mui/material/Toolbar';
import Tooltip from '@mui/material/Tooltip';
import React, { FC, ReactNode } from 'react';
import React, { type FC, type PropsWithChildren, ReactNode } from 'react';
import { appRouter } from 'components/router/appRouter';
import { useApi } from 'hooks/useApi';
@ -27,7 +27,7 @@ const onBackButtonClick = () => {
});
};
const AppToolbar: FC<AppToolbarProps> = ({
const AppToolbar: FC<PropsWithChildren<AppToolbarProps>> = ({
buttons,
children,
isDrawerAvailable,