Convert LayoutCellHeader to TS
parent
8ad71b0936
commit
30a55d0ac3
|
@ -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
|
Loading…
Reference in New Issue