mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
rename
This commit is contained in:
parent
5498ec9ca5
commit
13c52d960b
@ -2,7 +2,7 @@ import React from 'react'
|
||||
import Switch from 'react-router-dom/Switch'
|
||||
import Route from 'react-router-dom/Route'
|
||||
import Home from './components/pages/Home'
|
||||
import Project from './components/organisms/Project'
|
||||
import ProjectView from './components/organisms/ProjectView'
|
||||
import NotFound from './components/pages/NotFound'
|
||||
import projects from './data/projects.json'
|
||||
|
||||
@ -14,7 +14,7 @@ const Routes = () => (
|
||||
key={project.slug}
|
||||
path={`/${project.slug}`}
|
||||
render={(props) =>
|
||||
<Project
|
||||
<ProjectView
|
||||
{...props}
|
||||
project={project} />
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ const Project = ({ project }) => {
|
||||
{img}
|
||||
|
||||
<ul>
|
||||
{Object.keys(links).map(key => (
|
||||
{!!links && Object.keys(links).map(key => (
|
||||
<li key={key}>
|
||||
<a href={links[key]}>{key}</a>
|
||||
</li>
|
Loading…
Reference in New Issue
Block a user