Skip to content

Commit a81bd5e

Browse files
author
Vincenius
committed
remove unused packages & fix skewed bg
1 parent 399d074 commit a81bd5e

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

components/Generator/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useState } from 'react'
2-
import cn from 'classnames'
32
import { Card } from '@material-ui/core'
43
import { GitHub } from '@material-ui/icons'
54
import Controls from './Controls'
@@ -40,7 +39,7 @@ const Generator = props => {
4039
</a>
4140
</S.Header>
4241
<S.Container>
43-
<TopElement className={cn(active, reversedClass)} options={options}>
42+
<TopElement options={options} noBgColor={active === SEPARATORS.SKEWED}>
4443
<Controls
4544
options={options}
4645
setOptions={setOptions}

components/Generator/styled.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import styled, { css } from 'styled-components'
2-
import _get from 'lodash/get'
32
import {
43
Card,
54
TextareaAutosize,
@@ -54,11 +53,7 @@ const Section = styled.section`
5453

5554
export const Top = styled(Section)`
5655
color: #fff;
57-
background: ${darkGrey};
58-
59-
&.skewed {
60-
background: transparent;
61-
}
56+
background: ${props => props.noBgColor ? 'transparent' : darkGrey};
6257
`
6358

6459
export const SkewBg = styled.div`

package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"dependencies": {
1111
"@material-ui/core": "^4.9.7",
1212
"@material-ui/icons": "^4.9.1",
13-
"classnames": "^2.2.6",
14-
"lodash": "^4.17.15",
1513
"next": "9.2.2",
1614
"react": "16.13.0",
1715
"react-dom": "16.13.0",

0 commit comments

Comments
 (0)