Skip to content

Commit

Permalink
fix: prevent pass cardSize as DOM property (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 11, 2019
1 parent 81062e9 commit 6b4848b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled from 'styled-components'
import MediaButton from './MediaButton'
import { media, isLarge } from '../../../../utils'

const Backward = props => (
const Backward = ({ cardSize, ...props }) => (
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 29' {...props}>
<path
fill='#FFF'
Expand All @@ -17,7 +17,7 @@ const Backward = props => (
</svg>
)

const Forward = props => (
const Forward = ({ cardSize, ...props }) => (
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 29' {...props}>
<path
fill='#FFF'
Expand All @@ -44,7 +44,7 @@ const SeekIcon = styled('svg')`
`

const SeekButtonWrap = styled(MediaButton)`
margin: 0 ${({ cardSize }) => isLarge(cardSize) ? '28px' : '3px'};
margin: 0 ${({ cardSize }) => (isLarge(cardSize) ? '28px' : '3px')};
`

const SeekButton = ({ type = 'rewind', cardSize, ...props }) => {
Expand Down

0 comments on commit 6b4848b

Please sign in to comment.