diff --git a/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx b/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx
index 09cff44..e746e2b 100644
--- a/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx
+++ b/src/ui/pages/Secrets/KeyValue/KeyValueList.tsx
@@ -53,7 +53,7 @@ export class KVKeysList extends Component {
async componentDidMount() {
this.setState({
- searchQuery: ""
+ searchQuery: "",
});
try {
@@ -98,7 +98,7 @@ export class KVKeysList extends Component {
) {
this.setState({
dataLoaded: false,
- searchQuery: ""
+ searchQuery: "",
});
void this.loadData();
}
diff --git a/src/ui/pages/Secrets/TOTP/TOTPList.tsx b/src/ui/pages/Secrets/TOTP/TOTPList.tsx
index 7977807..ebcef21 100644
--- a/src/ui/pages/Secrets/TOTP/TOTPList.tsx
+++ b/src/ui/pages/Secrets/TOTP/TOTPList.tsx
@@ -1,11 +1,13 @@
import { Button } from "../../../elements/Button";
import { CapabilitiesType } from "../../../../api/types/capabilities";
-import { Component, createRef, JSX } from "preact";
+import { Component, JSX, createRef } from "preact";
import { CopyableInputBox } from "../../../elements/CopyableInputBox";
import { DefaultPageProps } from "../../../../types/DefaultPageProps";
import { Grid, GridSizes } from "../../../elements/Grid";
+import { Margin } from "../../../elements/Margin";
import { MarginInline } from "../../../elements/MarginInline";
import { SecretTitleElement } from "../SecretTitleElement";
+import { TextInput } from "../../../elements/forms/TextInput";
import {
delSecretsEngineURL,
totpDeleteURL,
@@ -14,9 +16,7 @@ import {
} from "../../pageLinks";
import { removeDoubleSlash } from "../../../../utils";
import { sendErrorNotification } from "../../../elements/ErrorMessage";
-import i18next, { t } from "i18next";
-import { Margin } from "../../../elements/Margin";
-import { TextInput } from "../../../elements/forms/TextInput";
+import i18next from "i18next";
type TOTPGridItemProps = DefaultPageProps & {
baseMount: string;
@@ -76,17 +76,17 @@ type TOTPItem = {
type TOTPListViewProps = DefaultPageProps & {
totpItems: TOTPItem[];
-}
+};
type TOTPListViewState = {
searchQuery: string;
-}
+};
export class TOTPListView extends Component {
constructor() {
super();
this.state = {
- searchQuery: ""
+ searchQuery: "",
};
}
@@ -94,13 +94,13 @@ export class TOTPListView extends Component{i18next.t("totp_list_empty")}
+ return {i18next.t("totp_list_empty")}
;
}
return (
@@ -133,11 +133,10 @@ export class TOTPListView extends Component
- )
+ );
}
}
-
type TOTPListState = {
capabilities?: CapabilitiesType;
totpItems: TOTPItem[];
@@ -149,7 +148,6 @@ export class TOTPList extends Component {
this.state = { capabilities: null, totpItems: [] };
}
-
async doApiFetches() {
const api = this.props.api;
const baseMount = this.props.matches["baseMount"];