From 634026755d15526edaac5a0888da9bc312915934 Mon Sep 17 00:00:00 2001 From: AtuyL Date: Fri, 30 Nov 2018 10:40:46 +0900 Subject: [PATCH] fix: deprecated syntax by current styled-components. --- app/components/button.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/button.js b/app/components/button.js index 6a9df765..79c979a4 100644 --- a/app/components/button.js +++ b/app/components/button.js @@ -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) { @@ -13,7 +14,7 @@ const BaseButton = styled.button.attrs({ } return undefined } -})` +}))` text-transform: uppercase; letter-spacing: 0.025em; cursor: pointer;