Skip to content

Commit

Permalink
feat: return setting collapsible with feature toggle and make it alwa…
Browse files Browse the repository at this point in the history
…ys cvollapsible when tabs are not used
  • Loading branch information
flaminic committed Sep 4, 2024
1 parent 1711617 commit ad823a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 1 addition & 3 deletions src/data-workspace/section-form/section-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import { useSectionFilter } from '../../shared/index.js'
import { useFeature } from '../use-feature.js'
import { SectionFormSection } from './section.js'
import styles from './section.module.css'

Expand All @@ -24,7 +23,6 @@ export const SectionForm = ({ dataSet, globalFilterText }) => {

const { displayOptions: displayOptionString } = dataSet
const displayOptions = parseDisplayOptions(displayOptionString)
const featureToggleCollapsible = useFeature('collapsible')

if (dataSet.renderAsTabs) {
return (
Expand All @@ -45,7 +43,7 @@ export const SectionForm = ({ dataSet, globalFilterText }) => {
dataSetId={dataSet.id}
key={s.id}
globalFilterText={globalFilterText}
collapsible={featureToggleCollapsible}
collapsible
/>
))}
</>
Expand Down
8 changes: 0 additions & 8 deletions src/data-workspace/use-feature.js

This file was deleted.

0 comments on commit ad823a3

Please sign in to comment.