From 62444d7f7bcc331d958e21e2aa4b78a7958630b5 Mon Sep 17 00:00:00 2001 From: Avior Date: Wed, 29 Apr 2020 15:16:17 +0200 Subject: [PATCH] presque finis #6 vreste plus qu'a avoir un design propres Signed-off-by: Avior --- .gitignore | 1 - components/FluxItem.jsx | 6 ++++-- pages/api/photos.js | 2 +- pages/flux.jsx | 9 ++++++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index cb761ee..b9c5083 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ # misc .DS_Store -.env* # debug npm-debug.log* diff --git a/components/FluxItem.jsx b/components/FluxItem.jsx index 7806812..ec4db89 100644 --- a/components/FluxItem.jsx +++ b/components/FluxItem.jsx @@ -1,15 +1,17 @@ import React from 'react' +import Link from 'next/link' export default class FluxItem extends React.Component { render() { + const location = this.props.locations.find((el) => el.id === this.props.item.coinId) return (

- By {this.props.item.pseudo} - At {this.props.item.location} + By {this.props.item.pseudo} + At {location.name}