Convert LayoutCellHeader to TS

pull/3904/head
Andrew Watkins 2018-07-16 09:58:54 -07:00
parent 8ad71b0936
commit 30a55d0ac3
1 changed files with 7 additions and 10 deletions

View File

@ -1,8 +1,12 @@
import React from 'react'
import PropTypes from 'prop-types'
import React, {SFC} from 'react'
import {isCellUntitled} from 'src/dashboards/utils/cellGetters'
const LayoutCellHeader = ({isEditable, cellName}) => {
interface Props {
isEditable: boolean
cellName: string
}
const LayoutCellHeader: SFC<Props> = ({isEditable, cellName}) => {
const headingClass = `dash-graph--heading ${
isEditable ? 'dash-graph--draggable dash-graph--heading-draggable' : ''
}`
@ -22,11 +26,4 @@ const LayoutCellHeader = ({isEditable, cellName}) => {
)
}
const {bool, string} = PropTypes
LayoutCellHeader.propTypes = {
isEditable: bool,
cellName: string,
}
export default LayoutCellHeader