Added title to each page

This commit is contained in:
Camerin Figueroa 2021-09-20 15:11:19 -04:00
parent 9fef983266
commit 32e1d21d15
2 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ import space from '../img/space.webp';
class Github extends React.Component { class Github extends React.Component {
componentDidMount() { componentDidMount() {
document.title = "Github Repos";
if (!this.props.repos) { if (!this.props.repos) {
this.props.getRepos(); this.props.getRepos();
console.log("A");
} }
} }
@ -49,7 +49,7 @@ class Github extends React.Component {
star. Any projects that have a website will have a button star. Any projects that have a website will have a button
that will bring you right to the site" that will bring you right to the site"
background={space} background={space}
peak extraClasses="peak"
/> />
<div> <div>
{this.renderRepos()} {this.renderRepos()}

View File

@ -3,7 +3,7 @@ import Theater from './Theater';
import './css/Home.css'; import './css/Home.css';
const Home = (props) => { const Home = (props) => {
document.title = "Welcome to my Portfolio";
const title = "Welcome to my Portfolio"; const title = "Welcome to my Portfolio";
const description = const description =
<p> <p>