From e0589fa8ab63c1343fb33c10fccbf11f89c314f0 Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Tue, 4 Dec 2018 00:54:44 +0700 Subject: [PATCH 1/8] :hammer: Remove usage of custom emotion syntax (styled.div, css={...}) --- src/ui/DialogContent.jsx | 4 ++-- src/ui/FloatingMobileButton.jsx | 5 +++-- src/ui/FloatingMobileMenu.jsx | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/ui/DialogContent.jsx b/src/ui/DialogContent.jsx index 650d5dec7..c443faa9c 100644 --- a/src/ui/DialogContent.jsx +++ b/src/ui/DialogContent.jsx @@ -1,6 +1,6 @@ import styled from 'react-emotion' -const DialogContent = styled.div` +const DialogContent = styled('div')` padding: 1em; > p { margin: 0; @@ -10,7 +10,7 @@ const DialogContent = styled.div` } ` -DialogContent.Buttons = styled.p` +DialogContent.Buttons = styled('p')` text-align: right; ` diff --git a/src/ui/FloatingMobileButton.jsx b/src/ui/FloatingMobileButton.jsx index 5996ce260..b0d8ddc40 100644 --- a/src/ui/FloatingMobileButton.jsx +++ b/src/ui/FloatingMobileButton.jsx @@ -1,10 +1,11 @@ import React from 'react' import PropTypes from 'prop-types' +import { css } from 'emotion'; function FloatingMobileButton ({ children, buttonProps }) { return (