Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
fix(client): page title hard coded for production
Browse files Browse the repository at this point in the history
  • Loading branch information
wesdevpro committed Nov 27, 2023
1 parent 2d00d26 commit 2867319
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/EducationTrail/ClientApp/src/layouts/HomeLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class HomeLayout extends Component<LayoutProps> {
return (
<div>
<NavMenu />
<div className="container">
{this.props.children}
</div>
<NavFooter />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/EducationTrail/ClientApp/src/pages/counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Counter extends Component<{}, CounterState> {
}

componentDidMount() {
document.title = Counter.name + " - Education Trail";
document.title = "Counter - Education Trail";
}

incrementCounter() {
Expand Down
2 changes: 1 addition & 1 deletion src/EducationTrail/ClientApp/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class Home extends Component {
static displayName = Home.name;

componentDidMount() {
document.title = Home.name + " - Education Trail";
document.title = "Home - Education Trail";
}

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/EducationTrail/ClientApp/src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class Login extends Component {
static displayName = Login.name;

componentDidMount() {
document.title = Login.name + " - Education Trail";
document.title = "Login - Education Trail";
}

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/EducationTrail/ClientApp/src/pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class Signup extends Component {
static displayName = Signup.name;

componentDidMount() {
document.title = Signup.name + " - Education Trail";
document.title = "Signup - Education Trail";
}

render() {
Expand Down
4 changes: 4 additions & 0 deletions src/EducationTrail/ClientApp/src/pages/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import React, { Component } from 'react';
class Test extends Component {
static displayName = Test.name;

componentDidMount() {
document.title = "Test - Education Trail";
}

render(): React.ReactNode {
return (
<p>Welcome to Testing</p>
Expand Down

0 comments on commit 2867319

Please sign in to comment.