@@ -2,21 +2,23 @@ import React from 'react'
22import { withNamespaces } from 'react-i18next'
33import ExternalLinkNewTab from '../Utils/ExternalLinkNewTab'
44
5-
65const ROLE_AMBASSADOR = 'ambassador'
76const ROLE_AMBASSADOR_PADAWAN = 'ambassadorPadawan'
87const ROLE_DEVELOPER = 'developer'
98const ROLE_DONATOR = 'donator'
109const ROLE_PARTNER = 'partner'
1110
11+ // prettier-ignore
1212const CONTRIBUTORS = [
1313 { role : ROLE_AMBASSADOR , name : 'Frédéric Bouffetier' , picture : 'frederic' } ,
1414 { role : ROLE_AMBASSADOR , name : 'Timothée Roland' , picture : 'timothee' } ,
15- { role : ROLE_AMBASSADOR_PADAWAN , name : 'Dorian Cazottes' , picture : 'dorian' } ,
15+ { role : ROLE_AMBASSADOR , name : 'Dorian Cazottes' , picture : 'dorian' } ,
1616 { role : ROLE_PARTNER , name : 'ThinkerView' , picture : 'thinkerview' , url : 'https://thinkerview.com' } ,
1717 { role : ROLE_PARTNER , name : 'Heu?reka' , picture : 'heureka' , url : 'https://www.youtube.com/channel/UC7sXGI8p8PvKosLWagkK9wQ' } ,
1818 { role : ROLE_PARTNER , name : 'La Tronche en Biais' , picture : 'troncheenbiais' , url : 'https://www.youtube.com/user/TroncheEnBiais' } ,
19- { role : ROLE_PARTNER , name : 'IMAGO' , picture : 'imago' , url : 'http://imagotv.fr/pdf/imago_presentation.pdf' } ,
19+ { role : ROLE_PARTNER , name : 'Système D' , picture : 'systemed' , url : 'https://www.systeme-d.co/' } ,
20+ { role : ROLE_PARTNER , name : 'Démocratie Ouverte' , picture : 'democratie-ouverte' , url : 'https://democratieouverte.org' } ,
21+ { role : ROLE_PARTNER , name : 'IMAGO' , picture : 'imago' , url : 'http://imagotv.fr' } ,
2022 { role : ROLE_PARTNER , name : 'TedX Nouméa' , picture : 'tedxnoumea' , url : 'https://tedxnoumea.com' } ,
2123 { role : ROLE_PARTNER , name : 'YesWeHack' , picture : 'yeswehack' , url : 'https://yeswehack.com' } ,
2224 { role : ROLE_PARTNER , name : 'Maia Mater' , picture : 'maiamater' , url : 'https://www.maiamater.camp' } ,
@@ -52,11 +54,11 @@ const AllContributors = ({ t }) => (
5254 </ figure >
5355 </ div >
5456 < div className = "card-content" >
55- < p className = "title is-4" >
56- { contributorName ( contributor ) }
57- </ p >
57+ < p className = "title is-4" > { contributorName ( contributor ) } </ p >
5858 < p className = "subtitle is-6" >
59- { t ( `roles.${ contributor . role } ` , { context : contributor . i18nContext } ) }
59+ { t ( `roles.${ contributor . role } ` , {
60+ context : contributor . i18nContext
61+ } ) }
6062 </ p >
6163 </ div >
6264 </ div >
@@ -65,15 +67,19 @@ const AllContributors = ({ t }) => (
6567)
6668
6769function contributorName ( { url, name } ) {
68- return url
69- ? < ExternalLinkNewTab href = { url } > { name } </ ExternalLinkNewTab >
70- : name
70+ return url ? < ExternalLinkNewTab href = { url } > { name } </ ExternalLinkNewTab > : name
7171}
7272
7373function contributorPicture ( { picture } ) {
74- return picture
75- ? < img src = { `/assets/img/contributors/${ picture } .jpg` } alt = "" />
76- : < img src = "/assets/img/contributors/no-picture.svg" className = "no-picture" alt = "" />
74+ return picture ? (
75+ < img src = { `/assets/img/contributors/${ picture } .jpg` } alt = "" />
76+ ) : (
77+ < img
78+ src = "/assets/img/contributors/no-picture.svg"
79+ className = "no-picture"
80+ alt = ""
81+ />
82+ )
7783}
7884
7985export default withNamespaces ( 'home' ) ( AllContributors )
0 commit comments