1
0
mirror of https://github.com/fallenbagel/jellyseerr.git synced 2026-01-11 00:58:16 -05:00

chore(deps): update react to 18 (#2943)

This commit is contained in:
Ryan Cohen
2022-08-18 17:05:58 +09:00
committed by GitHub
parent 72d7a3477f
commit e5d8c93ab8
164 changed files with 982 additions and 915 deletions

View File

@@ -13,7 +13,7 @@ interface LoginWithPlexProps {
onComplete: () => void;
}
const LoginWithPlex: React.FC<LoginWithPlexProps> = ({ onComplete }) => {
const LoginWithPlex = ({ onComplete }: LoginWithPlexProps) => {
const intl = useIntl();
const [authToken, setAuthToken] = useState<string | undefined>(undefined);
const { user, revalidate } = useUser();

View File

@@ -9,13 +9,13 @@ interface CurrentStep {
isLastStep?: boolean;
}
const SetupSteps: React.FC<CurrentStep> = ({
const SetupSteps = ({
stepNumber,
description,
active = false,
completed = false,
isLastStep = false,
}) => {
}: CurrentStep) => {
return (
<li className="relative md:flex md:flex-1">
<div className="flex items-center space-x-4 px-6 py-4 text-sm font-medium leading-5">

View File

@@ -28,7 +28,7 @@ const messages = defineMessages({
'Scanning will run in the background. You can continue the setup process in the meantime.',
});
const Setup: React.FC = () => {
const Setup = () => {
const intl = useIntl();
const [isUpdating, setIsUpdating] = useState(false);
const [currentStep, setCurrentStep] = useState(1);