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

@ -1,11 +1,11 @@
import React, { FC, useEffect } from 'react';
import React, { type FC, type PropsWithChildren, useEffect } from 'react';
import viewContainer from './viewContainer';
/**
* A simple component that includes the correct structure for ViewManager pages
* to exist alongside standard React pages.
*/
const AppBody: FC = ({ children }) => {
const AppBody: FC<PropsWithChildren<unknown>> = ({ children }) => {
useEffect(() => () => {
// Reset view container state on unload
viewContainer.reset();