mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-19 02:26:27 +00:00
Converted to Vite since create-react-app is no longer being developed
This commit is contained in:
@ -13,15 +13,15 @@ import {
|
||||
useColorModeValue,
|
||||
useToast,
|
||||
} from "@chakra-ui/react";
|
||||
import { createUser } from "api/npm";
|
||||
import { LocalePicker, PrettyButton, ThemeSwitcher } from "components";
|
||||
import { useAuthState } from "context";
|
||||
import { useQueryClient } from "@tanstack/react-query";
|
||||
import { Formik, Form, Field } from "formik";
|
||||
import { intl } from "locale";
|
||||
import { validateEmail, validateString } from "modules/Validations";
|
||||
import { useQueryClient } from "react-query";
|
||||
|
||||
import logo from "../../img/logo-256.png";
|
||||
import { createUser } from "src/api/npm";
|
||||
// import logo from "src/assets/logo-256.png";
|
||||
import { LocalePicker, PrettyButton, ThemeSwitcher } from "src/components";
|
||||
import { useAuthState } from "src/context";
|
||||
import { intl } from "src/locale";
|
||||
import { validateEmail, validateString } from "src/modules/Validations";
|
||||
|
||||
interface Payload {
|
||||
name: string;
|
||||
@ -67,7 +67,7 @@ function Setup() {
|
||||
try {
|
||||
await login(response.email, password);
|
||||
// Trigger a Health change
|
||||
await queryClient.refetchQueries("health");
|
||||
await queryClient.refetchQueries(["health"]);
|
||||
// window.location.reload();
|
||||
} catch (err: any) {
|
||||
showErr(err.message);
|
||||
@ -101,7 +101,7 @@ function Setup() {
|
||||
<Stack spacing={8} mx="auto" maxW="md" w="full" py={4} px={6}>
|
||||
<Box>
|
||||
<Center>
|
||||
<img src={logo} width={100} alt="Logo" />
|
||||
<img src="/images/logo-256.png" width={100} alt="Logo" />
|
||||
</Center>
|
||||
</Box>
|
||||
<Box
|
||||
|
Reference in New Issue
Block a user