mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-01 02:17:50 +01:00
Converted to Vite since create-react-app is no longer being developed
This commit is contained in:
115 files changed
+2511
-10015
No files matched your search
@@ -1,11 +1,12 @@
|
||||
import { useEffect, useReducer, useState } from "react";
|
||||
|
||||
import { Alert, AlertIcon, useToast } from "@chakra-ui/react";
|
||||
import { renewCertificate } from "api/npm";
|
||||
import { EmptyList, SpinnerPage, tableEventReducer } from "components";
|
||||
import { useCertificates } from "hooks";
|
||||
import { intl } from "locale";
|
||||
import { useQueryClient } from "react-query";
|
||||
import { useQueryClient } from "@tanstack/react-query";
|
||||
|
||||
import { renewCertificate } from "src/api/npm";
|
||||
import { EmptyList, SpinnerPage, tableEventReducer } from "src/components";
|
||||
import { useCertificates } from "src/hooks";
|
||||
import { intl } from "src/locale";
|
||||
|
||||
import Table from "./Table";
|
||||
|
||||
@@ -54,7 +55,7 @@ function TableWrapper() {
|
||||
isClosable: true,
|
||||
});
|
||||
setTimeout(() => {
|
||||
queryClient.invalidateQueries("certificates");
|
||||
queryClient.invalidateQueries(["certificates"]);
|
||||
}, 500);
|
||||
} catch (err: any) {
|
||||
toast({
|
||||
|
||||
Reference in new issue
Block a user