1
0
Fork 0

remove get name()

This commit is contained in:
ChaotiCryptidz 2022-01-07 16:46:32 +00:00
parent e7d171cdb1
commit 4164285ce4
5 changed files with 4 additions and 25 deletions

View file

@ -112,7 +112,7 @@ export class Login extends Component<DefaultPageProps> {
render(): JSX.Element { render(): JSX.Element {
return ( return (
<> <>
<PageTitle title={this.name} /> <PageTitle title={i18next.t("log_in_title")} />
<div> <div>
<ul class="uk-subnav uk-subnav-pill" uk-switcher=".switcher-container"> <ul class="uk-subnav uk-subnav-pill" uk-switcher=".switcher-container">
<li> <li>
@ -135,8 +135,4 @@ export class Login extends Component<DefaultPageProps> {
</> </>
); );
} }
get name(): string {
return i18next.t("log_in_title");
}
} }

View file

@ -58,7 +58,7 @@ export class Me extends Component<DefaultPageProps, MeState> {
return ( return (
this.state.loaded && ( this.state.loaded && (
<> <>
<PageTitle title={this.name} /> <PageTitle title={i18next.t("me_page_title")} />
<ul class="uk-nav"> <ul class="uk-nav">
<li> <li>
<a <a
@ -111,8 +111,4 @@ export class Me extends Component<DefaultPageProps, MeState> {
) )
); );
} }
get name(): string {
return i18next.t("me_page_title");
}
} }

View file

@ -50,8 +50,4 @@ export class NewTOTPEngine extends Component<DefaultPageProps> {
setErrorText(error.message); setErrorText(error.message);
} }
} }
get name(): string {
return i18next.t("new_totp_engine_title");
}
} }

View file

@ -12,7 +12,7 @@ export class NewTransitEngine extends Component<DefaultPageProps> {
render() { render() {
return ( return (
<> <>
<PageTitle title={i18next.t("new_totp_engine_title")} /> <PageTitle title={i18next.t("new_transit_engine_title")} />
<Form onSubmit={(data) => this.submit(data)}> <Form onSubmit={(data) => this.submit(data)}>
<Margin> <Margin>
<input <input
@ -49,8 +49,4 @@ export class NewTransitEngine extends Component<DefaultPageProps> {
setErrorText(error.message); setErrorText(error.message);
} }
} }
get name(): string {
return i18next.t("new_transit_engine_title");
}
} }

View file

@ -9,7 +9,7 @@ export class SetVaultURL extends Component<DefaultPageProps> {
render() { render() {
return ( return (
<> <>
<PageTitle title={this.name} /> <PageTitle title="Set Vault URL" />
<Form onSubmit={(data) => this.onSubmit(data)}> <Form onSubmit={(data) => this.onSubmit(data)}>
<Margin> <Margin>
<input <input
@ -36,9 +36,4 @@ export class SetVaultURL extends Component<DefaultPageProps> {
this.props.settings.apiURL = data.get("vaultURL") as string; this.props.settings.apiURL = data.get("vaultURL") as string;
route("/"); route("/");
} }
get name(): string {
// TODO:
return "Set Vault URL";
}
} }