From 95a9835ff8863b8084b261e7c0619a3c0f60b2f7 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sun, 7 Oct 2018 14:21:35 +0300 Subject: [PATCH] remove FetchButton --- client/src/components/Container.css | 2 +- client/src/components/todos/Input.js | 1 + client/src/components/user/FetchButton.js | 40 ----------------------- 3 files changed, 2 insertions(+), 41 deletions(-) delete mode 100644 client/src/components/user/FetchButton.js diff --git a/client/src/components/Container.css b/client/src/components/Container.css index 4fc663a..c66bbb6 100644 --- a/client/src/components/Container.css +++ b/client/src/components/Container.css @@ -46,7 +46,7 @@ body { height: 100%; flex-grow: 0; flex-shrink: 1; - color: #888888; + color: #555555; border: none; background: none; transition: 0.1s ease-in-out; diff --git a/client/src/components/todos/Input.js b/client/src/components/todos/Input.js index 25f05ac..4e5f43e 100644 --- a/client/src/components/todos/Input.js +++ b/client/src/components/todos/Input.js @@ -19,6 +19,7 @@ function Input({ onClick, styles }) { return (
{ input = node; }} diff --git a/client/src/components/user/FetchButton.js b/client/src/components/user/FetchButton.js deleted file mode 100644 index 5b11136..0000000 --- a/client/src/components/user/FetchButton.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import PropTypes from 'prop-types'; -import { ButtonBase } from '@material-ui/core'; - -import { fetchLists } from '../../actions/lists'; - -function FetchButton({ onClick, children }) { - return ( - { - e.preventDefault(); - onClick(); - }} - > - {children} - - ); -} - -FetchButton.propTypes = { - onClick: PropTypes.func.isRequired, - children: PropTypes.node.isRequired, -}; - -function mapDispatchToProps(dispatch) { - return { - onClick: () => dispatch(fetchLists()), - }; -} - -export default connect( - null, - mapDispatchToProps, -)(FetchButton);