1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00
This commit is contained in:
Matthias Kretschmann 2018-04-02 23:44:43 +02:00
parent 5498ec9ca5
commit 13c52d960b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import Switch from 'react-router-dom/Switch' import Switch from 'react-router-dom/Switch'
import Route from 'react-router-dom/Route' import Route from 'react-router-dom/Route'
import Home from './components/pages/Home' 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 NotFound from './components/pages/NotFound'
import projects from './data/projects.json' import projects from './data/projects.json'
@ -14,7 +14,7 @@ const Routes = () => (
key={project.slug} key={project.slug}
path={`/${project.slug}`} path={`/${project.slug}`}
render={(props) => render={(props) =>
<Project <ProjectView
{...props} {...props}
project={project} /> project={project} />
} }

View File

@ -20,7 +20,7 @@ const Project = ({ project }) => {
{img} {img}
<ul> <ul>
{Object.keys(links).map(key => ( {!!links && Object.keys(links).map(key => (
<li key={key}> <li key={key}>
<a href={links[key]}>{key}</a> <a href={links[key]}>{key}</a>
</li> </li>