From 14926e00ec1d749d5e2c83bdcd98ed68e9b2f896 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 3 Jul 2020 21:15:28 +0300 Subject: style: fix eslint errors --- src/pages/HomePage/HomePage.tsx | 59 +++++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 26 deletions(-) (limited to 'src/pages/HomePage/HomePage.tsx') diff --git a/src/pages/HomePage/HomePage.tsx b/src/pages/HomePage/HomePage.tsx index f3cadee..8995630 100644 --- a/src/pages/HomePage/HomePage.tsx +++ b/src/pages/HomePage/HomePage.tsx @@ -1,5 +1,11 @@ import React, { useState, useEffect } from 'react'; -import { Typography, Divider, Grid, Button, Link } from '@material-ui/core/'; +import { + Typography, + Divider, + Grid, + Button, + Link +} from '@material-ui/core/'; import { makeStyles } from '@material-ui/core/styles'; import TrendingUpIcon from '@material-ui/icons/TrendingUp'; import { Rating } from '@material-ui/lab'; @@ -28,7 +34,6 @@ const HomePage: React.FC = () => { const { navigate } = useNavigate(); const { isAuthenticated } = useAuth(); - const rating = feedbacks.length && feedbacks.reduce( (acc: number, feedback: Feedback) => acc + feedback.score, 0 @@ -48,12 +53,18 @@ const HomePage: React.FC = () => { navigate('auth'); }; + const GithubLink = GitHub; + const TypescriptLink = Typescript; + const ReactLink = React; + const FeathersLink = Feathers; + const MUILink = Material-UI; + return ( - logo + logo @@ -71,20 +82,25 @@ const HomePage: React.FC = () => { Which one to choose? -

Have you ever found yourself stuck between two options, not being able to choose any? This is exactly the problem we are going to solve!

+

+ Have you ever found yourself stuck between two options, not being able to choose any? + This is exactly the problem we are going to solve! +

Share your minor everyday uncertainties with the whole world and see what others think!

- {!isAuthenticated() && } + {!isAuthenticated() && ( + + )}
@@ -92,17 +108,8 @@ const HomePage: React.FC = () => {

- The project is written in - Typescript - and features - React - , - Feathers - , and - Material-UI - . - It is currently open-source and you can visit our - GitHub (make sure to star our repositories)! + The project is written in {TypescriptLink} and features {ReactLink}, {FeathersLink}, and {MUILink}. + It is currently open-source and you can visit our {GithubLink} (make sure to star our repositories)!

We encourage any developer to check it out. Feel free to open issues and create Pull Requests! @@ -117,7 +124,7 @@ const HomePage: React.FC = () => { startIcon={} href="https://github.com/orgs/which-ecosystem/projects/1" > - track our progress + track our progress -- cgit v1.2.3