remove get name()
This commit is contained in:
parent
e7d171cdb1
commit
4164285ce4
|
@ -112,7 +112,7 @@ export class Login extends Component<DefaultPageProps> {
|
|||
render(): JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<PageTitle title={this.name} />
|
||||
<PageTitle title={i18next.t("log_in_title")} />
|
||||
<div>
|
||||
<ul class="uk-subnav uk-subnav-pill" uk-switcher=".switcher-container">
|
||||
<li>
|
||||
|
@ -135,8 +135,4 @@ export class Login extends Component<DefaultPageProps> {
|
|||
</>
|
||||
);
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return i18next.t("log_in_title");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ export class Me extends Component<DefaultPageProps, MeState> {
|
|||
return (
|
||||
this.state.loaded && (
|
||||
<>
|
||||
<PageTitle title={this.name} />
|
||||
<PageTitle title={i18next.t("me_page_title")} />
|
||||
<ul class="uk-nav">
|
||||
<li>
|
||||
<a
|
||||
|
@ -111,8 +111,4 @@ export class Me extends Component<DefaultPageProps, MeState> {
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return i18next.t("me_page_title");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,8 +50,4 @@ export class NewTOTPEngine extends Component<DefaultPageProps> {
|
|||
setErrorText(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return i18next.t("new_totp_engine_title");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ export class NewTransitEngine extends Component<DefaultPageProps> {
|
|||
render() {
|
||||
return (
|
||||
<>
|
||||
<PageTitle title={i18next.t("new_totp_engine_title")} />
|
||||
<PageTitle title={i18next.t("new_transit_engine_title")} />
|
||||
<Form onSubmit={(data) => this.submit(data)}>
|
||||
<Margin>
|
||||
<input
|
||||
|
@ -49,8 +49,4 @@ export class NewTransitEngine extends Component<DefaultPageProps> {
|
|||
setErrorText(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return i18next.t("new_transit_engine_title");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ export class SetVaultURL extends Component<DefaultPageProps> {
|
|||
render() {
|
||||
return (
|
||||
<>
|
||||
<PageTitle title={this.name} />
|
||||
<PageTitle title="Set Vault URL" />
|
||||
<Form onSubmit={(data) => this.onSubmit(data)}>
|
||||
<Margin>
|
||||
<input
|
||||
|
@ -36,9 +36,4 @@ export class SetVaultURL extends Component<DefaultPageProps> {
|
|||
this.props.settings.apiURL = data.get("vaultURL") as string;
|
||||
route("/");
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
// TODO:
|
||||
return "Set Vault URL";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue