add GraphOptionsFixFirstColumn component
parent
60f21c68a4
commit
5536e900db
|
@ -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
|
Loading…
Reference in New Issue