Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix: deprecated syntax by current styled-components.
Browse files Browse the repository at this point in the history
  • Loading branch information
AtuyL committed Nov 30, 2018
1 parent fa0025a commit 6340267
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import React from 'react'
import styled from 'styled-components'

const BaseButton = styled.button.attrs({
const BaseButton = styled.button.attrs(props => ({
...props,
onClick: props => {
if (props.trigger) {
return function (e) {
Expand All @@ -13,7 +14,7 @@ const BaseButton = styled.button.attrs({
}
return undefined
}
})`
}))`
text-transform: uppercase;
letter-spacing: 0.025em;
cursor: pointer;
Expand Down

0 comments on commit 6340267

Please sign in to comment.