diff --git a/src/components/organisms/Header.jsx b/src/components/organisms/Header.jsx index e3659fa..fce3e84 100644 --- a/src/components/organisms/Header.jsx +++ b/src/components/organisms/Header.jsx @@ -22,24 +22,8 @@ export default class Header extends PureComponent { minimal: PropTypes.bool } - state = { isMinimal: this.props.minimal } - - checkMinimal = () => { - const { minimal } = this.props - - this.setState({ isMinimal: minimal }) - } - - componentDidMount() { - this.checkMinimal() - } - - componentDidUpdate() { - this.checkMinimal() - } - render() { - const { isMinimal } = this.state + const { minimal } = this.props return ( +
- + - + - +
) }}