Skip to content

Commit

Permalink
refactor: Delete unused withStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
sujinleeme committed Jul 22, 2018
1 parent 33f7af3 commit 97b62b9
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/pages/MyPage.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

0 comments on commit 97b62b9

Please sign in to comment.