From 6ffd9ba4fdb459eb2e425ba1bf873baf7576c3f9 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Tue, 28 Jan 2020 12:41:35 +0300 Subject: feat!: migrate to BENZIN library --- src/pages/Contribute/Contribute.js | 11 +++++------ src/pages/Profile/Profile.js | 11 +++++++---- src/pages/Profile/Registration/Registration.js | 6 +++--- src/pages/Scoreboard/Scoreboard.js | 6 +++--- src/pages/Timer/Timer.js | 13 ++++++++----- src/pages/Timer/TimerButton/TimerButton.js | 4 ++-- 6 files changed, 28 insertions(+), 23 deletions(-) (limited to 'src/pages') diff --git a/src/pages/Contribute/Contribute.js b/src/pages/Contribute/Contribute.js index d94cc80..70003ba 100644 --- a/src/pages/Contribute/Contribute.js +++ b/src/pages/Contribute/Contribute.js @@ -15,8 +15,7 @@ import TrendingUpIcon from '@material-ui/icons/TrendingUp'; import BugReportIcon from '@material-ui/icons/BugReport'; import NewReleasesIcon from '@material-ui/icons/NewReleases'; -import Window from '../../components/Window/Window'; -import ContentSection from '../../components/ContentSection/ContentSection'; +import { Window, ContentSection } from 'react-benzin-test'; const useStyles = makeStyles(theme => ({ @@ -47,7 +46,7 @@ const Contribute = () => {

diff --git a/src/pages/Scoreboard/Scoreboard.js b/src/pages/Scoreboard/Scoreboard.js index 335c06b..7385f3a 100644 --- a/src/pages/Scoreboard/Scoreboard.js +++ b/src/pages/Scoreboard/Scoreboard.js @@ -2,12 +2,12 @@ import React, { useEffect, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; -import { get } from '../../requests'; +import { Window, SmartList } from 'react-benzin-test'; -import SmartList from '../../components/SmartList/SmartList'; import SolutionCard from '../../components/SolutionCard/SolutionCard'; import Loading from '../../components/Loading/Loading'; -import Window from '../../components/Window/Window'; + +import { get } from '../../requests'; const useStyles = makeStyles(theme => ({ diff --git a/src/pages/Timer/Timer.js b/src/pages/Timer/Timer.js index 1323d97..e42e318 100644 --- a/src/pages/Timer/Timer.js +++ b/src/pages/Timer/Timer.js @@ -2,10 +2,13 @@ import React from 'react'; import { post } from '../../requests'; -import Window from '../../components/Window/Window'; -import ContentSection from '../../components/ContentSection/ContentSection'; +import { + Window, + ContentSection, + SmartList, +} from 'react-benzin-test'; + import TimerButton from './TimerButton/TimerButton'; -import SmartList from '../../components/SmartList/SmartList'; import SolutionCard from '../../components/SolutionCard/SolutionCard'; import { Button, makeStyles } from '@material-ui/core'; @@ -63,12 +66,12 @@ const Timer = ({ user, recentSolutions, setRecentSolutions, setPage }) => { Every speedcuber will benefit from using it - both amateur and professional!

- + {user.id === null &&

Tell us your name so we can track your progress

- +
} diff --git a/src/pages/Timer/TimerButton/TimerButton.js b/src/pages/Timer/TimerButton/TimerButton.js index 0f43c5a..254f73c 100644 --- a/src/pages/Timer/TimerButton/TimerButton.js +++ b/src/pages/Timer/TimerButton/TimerButton.js @@ -7,7 +7,7 @@ const useStyles = makeStyles(theme => ({ root: { textAlign: 'center', padding: theme.spacing(5), - background: theme.palette.primary.main, + background: theme.palette.background.elevation3, marginTop: theme.spacing(10), }, })); @@ -90,7 +90,7 @@ const TimerButton = ({ registerResult }) => { }; return ( - + {time} {composeHelperText()} -- cgit v1.2.3 From ac791ff6d0c80f90b51866caa3b5195e5f47a045 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Tue, 28 Jan 2020 22:13:00 +0300 Subject: feat: use react-benzin v1.0.1 --- src/pages/Contribute/Contribute.js | 2 +- src/pages/Profile/Profile.js | 2 +- src/pages/Profile/Registration/Registration.js | 2 +- src/pages/Scoreboard/Scoreboard.js | 2 +- src/pages/Timer/Timer.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pages') diff --git a/src/pages/Contribute/Contribute.js b/src/pages/Contribute/Contribute.js index 70003ba..aa1c3f7 100644 --- a/src/pages/Contribute/Contribute.js +++ b/src/pages/Contribute/Contribute.js @@ -15,7 +15,7 @@ import TrendingUpIcon from '@material-ui/icons/TrendingUp'; import BugReportIcon from '@material-ui/icons/BugReport'; import NewReleasesIcon from '@material-ui/icons/NewReleases'; -import { Window, ContentSection } from 'react-benzin-test'; +import { Window, ContentSection } from 'react-benzin'; const useStyles = makeStyles(theme => ({ diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index 6ea90c4..65c3734 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -10,7 +10,7 @@ import { Window, ContentSection, SmartList, -} from 'react-benzin-test'; +} from 'react-benzin'; import SolutionCard from '../../components/SolutionCard/SolutionCard'; diff --git a/src/pages/Profile/Registration/Registration.js b/src/pages/Profile/Registration/Registration.js index 2aecc4a..b2d5503 100644 --- a/src/pages/Profile/Registration/Registration.js +++ b/src/pages/Profile/Registration/Registration.js @@ -8,7 +8,7 @@ import { Grid, } from '@material-ui/core'; -import { ContentSection } from 'react-benzin-test'; +import { ContentSection } from 'react-benzin'; import { get, post } from '../../../requests'; diff --git a/src/pages/Scoreboard/Scoreboard.js b/src/pages/Scoreboard/Scoreboard.js index 7385f3a..47c0899 100644 --- a/src/pages/Scoreboard/Scoreboard.js +++ b/src/pages/Scoreboard/Scoreboard.js @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; -import { Window, SmartList } from 'react-benzin-test'; +import { Window, SmartList } from 'react-benzin'; import SolutionCard from '../../components/SolutionCard/SolutionCard'; import Loading from '../../components/Loading/Loading'; diff --git a/src/pages/Timer/Timer.js b/src/pages/Timer/Timer.js index e42e318..6020c1b 100644 --- a/src/pages/Timer/Timer.js +++ b/src/pages/Timer/Timer.js @@ -6,7 +6,7 @@ import { Window, ContentSection, SmartList, -} from 'react-benzin-test'; +} from 'react-benzin'; import TimerButton from './TimerButton/TimerButton'; import SolutionCard from '../../components/SolutionCard/SolutionCard'; -- cgit v1.2.3 From 1ea6ae2f80e5e3f60ad89b4d6d02281c817cee43 Mon Sep 17 00:00:00 2001 From: asketonim Date: Tue, 28 Jan 2020 22:42:47 +0300 Subject: fix: change message on 'running' mode --- src/pages/Timer/TimerButton/TimerButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages') diff --git a/src/pages/Timer/TimerButton/TimerButton.js b/src/pages/Timer/TimerButton/TimerButton.js index 254f73c..fdb6b7c 100644 --- a/src/pages/Timer/TimerButton/TimerButton.js +++ b/src/pages/Timer/TimerButton/TimerButton.js @@ -74,7 +74,7 @@ const TimerButton = ({ registerResult }) => { const composeHelperText = () => { switch (mode) { - case 'running': return '_'; + case 'running': return 'Go fast!'; case 'countdown': return 'Release SPACE to begin'; case 'over': return 'You are too late!'; default: return 'Hold SPACE to start countdown'; -- cgit v1.2.3