From 97b62b978fc9724d7053823e5c327b65f3fa0ae0 Mon Sep 17 00:00:00 2001 From: sujinleeme Date: Sun, 22 Jul 2018 16:48:04 +0900 Subject: [PATCH] refactor: Delete unused withStyles --- src/pages/MyPage.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/pages/MyPage.js b/src/pages/MyPage.js index 18dc4ef..fc880a4 100644 --- a/src/pages/MyPage.js +++ b/src/pages/MyPage.js @@ -1,28 +1,10 @@ import React from "react" -import { Link } from "react-router-dom" import Layout from "../components/Layout" -import classNames from "classnames" -import { withStyles } from "@material-ui/core/styles" import UserProfile from "./MyPage/UserProfile" import { connect } from "react-redux" import { modalRequest } from "../modal/actions" import { SIGN_IN_MODAL } from "../modal/constants" -const styles = { - row: { - display: "flex", - justifyContent: "center" - }, - avatar: { - margin: 10 - }, - bigAvatar: { - width: 60, - height: 60 - } -} - - class MyPage extends React.Component { componentDidMount () { const { user } = this.props @@ -48,4 +30,4 @@ const mapStateToProps = state => ({ user: state.client.user }) -export default withStyles(styles)(connect(mapStateToProps, {modalRequest})(MyPage)) +export default connect(mapStateToProps, {modalRequest})(MyPage)