From 7d24c07fcccec000c295daab08435d9ce3176abd Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Mon, 29 Jun 2020 18:35:00 -0300 Subject: [PATCH] :ok_hand: use common/Button component for IconButton --- client/components/mobile/IconButton.jsx | 19 +++++++++++++------ client/modules/IDE/pages/IDEViewMobile.jsx | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/client/components/mobile/IconButton.jsx b/client/components/mobile/IconButton.jsx index ce758376..1057d952 100644 --- a/client/components/mobile/IconButton.jsx +++ b/client/components/mobile/IconButton.jsx @@ -1,17 +1,24 @@ import React from 'react'; +import PropTypes from 'prop-types'; import styled from 'styled-components'; -import { prop, remSize } from '../../theme'; +import Button from '../../common/Button'; -const textColor = prop('primaryTextColor'); - -const IconButton = styled.button` +const ButtonWrapper = styled(Button)` width: 3rem; > svg { width: 100%; height: auto; - fill: ${textColor}; - stroke: ${textColor}; } `; +const IconButton = ({ children }) => (); + +IconButton.propTypes = { + children: PropTypes.element.isRequired +}; + export default IconButton; diff --git a/client/modules/IDE/pages/IDEViewMobile.jsx b/client/modules/IDE/pages/IDEViewMobile.jsx index 6c9b6af6..a16a27f1 100644 --- a/client/modules/IDE/pages/IDEViewMobile.jsx +++ b/client/modules/IDE/pages/IDEViewMobile.jsx @@ -61,7 +61,7 @@ const IDEViewMobile = (props) => {

{selectedFile.name}

-
+
setOverlay('preferences')}>