mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +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 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} />
|
||||||
}
|
}
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user