From 295c6e179ec0f14a10303e01fb6e5b5ef969db79 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 21 Mar 2020 17:38:44 +0300 Subject: feat: add github avatars to users --- src/pages/Contribute/Contribute.tsx | 40 +++++++++++++++---------------------- 1 file changed, 16 insertions(+), 24 deletions(-) (limited to 'src/pages/Contribute') diff --git a/src/pages/Contribute/Contribute.tsx b/src/pages/Contribute/Contribute.tsx index 4c37fb9..77228a1 100644 --- a/src/pages/Contribute/Contribute.tsx +++ b/src/pages/Contribute/Contribute.tsx @@ -6,7 +6,6 @@ import { List, ListItem, Link, - Avatar, Divider, makeStyles, } from '@material-ui/core'; @@ -16,6 +15,7 @@ import BugReportIcon from '@material-ui/icons/BugReport'; import NewReleasesIcon from '@material-ui/icons/NewReleases'; import { Window, ContentSection } from 'react-benzin'; +import GithubAvatar from '../../components/GithubAvatar/GithubAvatar'; import developers from '../../developers.json'; @@ -111,31 +111,23 @@ const Contribute: React.FC = () => { { - developers.map(developer => { - const githubUrl = `https://github.com/${developer.username}`; - - return ( -
- - - - -
- - {developer.username} - - - {developer.role} - -
-
- -
- ) - }) + developers.map(developer => ( +
+ + +
+ {developer.username} + + {developer.role} + +
+
+ +
+ )) } - + You can be here!
-- cgit v1.2.3 From 5de3d6bc92a3dce752dad2ce2acc17071383b6fa Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 21 Mar 2020 17:51:01 +0300 Subject: fix: bind link to developer name --- src/pages/Contribute/Contribute.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages/Contribute') diff --git a/src/pages/Contribute/Contribute.tsx b/src/pages/Contribute/Contribute.tsx index 77228a1..67f2b8a 100644 --- a/src/pages/Contribute/Contribute.tsx +++ b/src/pages/Contribute/Contribute.tsx @@ -15,7 +15,7 @@ import BugReportIcon from '@material-ui/icons/BugReport'; import NewReleasesIcon from '@material-ui/icons/NewReleases'; import { Window, ContentSection } from 'react-benzin'; -import GithubAvatar from '../../components/GithubAvatar/GithubAvatar'; +import GithubAvatar, { getUserGithubUrl } from '../../components/GithubAvatar/GithubAvatar'; import developers from '../../developers.json'; @@ -116,7 +116,7 @@ const Contribute: React.FC = () => {
- {developer.username} + {developer.username} {developer.role} -- cgit v1.2.3