Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(Sidebar): add flow
Browse files Browse the repository at this point in the history
fix(Sidebar): add flow
  • Loading branch information
Metnew committed Sep 4, 2017
1 parent e7699c0 commit 6c5fd30
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/common/components/parts/Sidebar/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {Menu, Icon} from 'semantic-ui-react'
import {NavLink} from 'react-router-dom'
import {
Expand All @@ -10,15 +10,19 @@ import {
SidebarLogoutItem
} from './style'
import {Spacer} from 'styles/base'

import type {RouteItem} from 'types'
// require('./index.scss')

type Props = {
open: boolean,
logout: () => void,
routing: Array<RouteItem>,
isMobile: boolean
}

export default class SidebarComponent extends Component {
static propTypes = {
open: PropTypes.bool.isRequired,
logout: PropTypes.func.isRequired,
routing: PropTypes.array.isRequired,
isMobile: PropTypes.bool.isRequired
}
props: Props

render () {
const {open, logout, routing, isMobile} = this.props
Expand Down

0 comments on commit 6c5fd30

Please sign in to comment.