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 --- package-lock.json | 8 ++++---- package.json | 2 +- src/index.js | 2 +- 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 +- src/theme.js | 24 ------------------------ 9 files changed, 11 insertions(+), 35 deletions(-) delete mode 100644 src/theme.js diff --git a/package-lock.json b/package-lock.json index ac02e0d..4f6aef0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11342,10 +11342,10 @@ "whatwg-fetch": "^3.0.0" } }, - "react-benzin-test": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/react-benzin-test/-/react-benzin-test-2.0.4.tgz", - "integrity": "sha512-7cMk82c9eSTHuGhdjHXtmY0FXohgjHUZftns7wipumiTIE1uHI25Kme6cTSZUTkOyZyuXb73smC/rfeMx86b1w==", + "react-benzin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/react-benzin/-/react-benzin-1.0.1.tgz", + "integrity": "sha512-ZqU/SUYzqYJ8M0ozVv0y089rLXRZGRnsSnoCLYvnQLZFC2oE7fr7PfQd/aeleKvMic6Kx80IPfp2knLBGTgjtA==", "requires": { "@material-ui/core": "^4.9.0", "@material-ui/icons": "^4.5.1", diff --git a/package.json b/package.json index 321ddf4..2fbbac4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "axios": "^0.19.2", "gh-pages": "^2.2.0", "react": "^16.12.0", - "react-benzin-test": "^2.0.4", + "react-benzin": "^1.0.1", "react-dom": "^16.12.0", "react-scripts": "3.3.0", "react-virtualized-auto-sizer": "^1.0.2", diff --git a/src/index.js b/src/index.js index dd5ea8c..49c66e7 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import ReactDOM from 'react-dom'; import { BenzinThemeProvider, Header, -} from 'react-benzin-test'; +} from 'react-benzin'; import 'typeface-roboto'; 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'; diff --git a/src/theme.js b/src/theme.js deleted file mode 100644 index 3c671e6..0000000 --- a/src/theme.js +++ /dev/null @@ -1,24 +0,0 @@ -import { createMuiTheme } from '@material-ui/core/styles' - -const theme = createMuiTheme({ - palette: { - type: 'dark', - primary: { - main: '#0a0909', - }, - secondary: { - main: '#ff7315', - }, - background: { - default: '#232020', - paper: '#0f0e0e', - elevation: 'rgba(255, 255, 255, 0.04)', - }, - text: { - primary: '#f4f4f4', - secondary: '#6f6666', - } - }, -}); - -export default theme; -- cgit v1.2.3