Skip to content

Commit

Permalink
removing index route
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniorws committed Oct 4, 2023
1 parent 65124ed commit e88953f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "projetobase",
"name": "antoniorwserra.com",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function App() {
<div className="App">
<Header/>
<Switch>
<Route path={"/index"} component={Home}/>
<Route path={"/about"} component={About}/>
<Route path={"/articles"} component={Articles}/>
<Redirect to={"/index"}/>
<Route path="/" component={Home}/>
<Redirect to="/"/>
</Switch>
<Footer/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CardList/CardList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import './CardList.css'

function CardList(props){
return <a target="_blank" href={props.article.url}>
return <a target="_blank" rel="noreferrer" href={props.article.url}>
<li class="cardList" key={props.article.id}>
<img src={props.article.cover_image} alt="" />
<strong>{props.article.title}</strong>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Header(){
<header>
<nav>
<ul>
<li><a href="./index">Home</a></li>
<li><a href="./">Home</a></li>
<li><a href="./about">About</a></li>
<li><a href="./articles">Articles</a></li>
</ul>
Expand Down

0 comments on commit e88953f

Please sign in to comment.