fix signin

This commit is contained in:
Proddy
2023-06-18 17:12:43 +02:00
parent ce1b9f22cb
commit bc6b48bd07
4 changed files with 45 additions and 49 deletions

View File

@@ -29,13 +29,11 @@ import {
} from '@mui/material';
import { useRequest } from 'alova';
import axios from 'axios';
import { useContext, useState, useEffect } from 'react';
import { useContext, useState } from 'react';
import { toast } from 'react-toastify';
import RestartMonitor from './RestartMonitor';
import type { FC } from 'react';
import type { Version } from 'types';
import * as SystemApi from 'api/system';
import { ButtonRow, FormLoader, SectionContent, MessageBox } from 'components';
import { AuthenticatedContext } from 'contexts/authentication';
@@ -71,6 +69,7 @@ const SystemStatusForm: FC = () => {
immediate: false
});
// fetch versions from GH on load
const { data: latestVersion } = useRequest(SystemApi.getStableVersion);
const { data: latestDevVersion } = useRequest(SystemApi.getDevVersion);