add GraphOptionsFixFirstColumn component

pull/10616/head
Iris Scholten 2018-03-19 15:53:18 -07:00
parent 60f21c68a4
commit 5536e900db
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
import React, {SFC} from 'react'
import classnames from 'classnames'
interface Props {
fixed: boolean
onToggleFixFirstColumn: () => void
}
const GraphOptionsFixFirstColumn: SFC<Props> = ({
fixed,
onToggleFixFirstColumn,
}) =>
<div
className={classnames('query-builder--list-item', {
active: fixed,
})}
onClick={onToggleFixFirstColumn}
>
<span>
<div
className="query-builder--checkbox"
onClick={onToggleFixFirstColumn}
/>
<label>Fix First Column</label>
</span>
</div>
export default GraphOptionsFixFirstColumn