* merging ide-redesign/components/file-tree into features/file-tree * moving ide-redesign/contexts/settings-modal-context to features/settings/contexts * use-collapsible-file-tree.tsx → features/file-tree/hooks * use-focus-on-setting.tsx → features/settings/hooks * use-project-notification-preferences.ts → features/settings/hooks * use-rail-overflow.tsx→ features/ide-react/hooks * deleting use-switch-enable-new-editor-state.ts * use-toolbar-menu-editor-commands.tsx → features/source-editor/hooks * npm run extract-translations * modifying the test to target correct buttons and removing a test for old component * adding a test back and modifying it * changing the test GitOrigin-RevId: baa1e9a992c88b84313eea82161354d4958cf1ef
21 lines
659 B
TypeScript
21 lines
659 B
TypeScript
import { TabPane } from 'react-bootstrap'
|
|
import { SettingsTab } from '../context/settings-modal-context'
|
|
import SettingsSection from './settings-section'
|
|
import { Fragment } from 'react'
|
|
|
|
export default function SettingsTabPane({ tab }: { tab: SettingsTab }) {
|
|
const { key, sections } = tab
|
|
return (
|
|
<TabPane eventKey={key} key={key}>
|
|
{sections.map(section => (
|
|
<SettingsSection key={section.key} title={section.title}>
|
|
{section.settings.map(
|
|
({ key, component, hidden }) =>
|
|
!hidden && <Fragment key={key}>{component}</Fragment>
|
|
)}
|
|
</SettingsSection>
|
|
))}
|
|
</TabPane>
|
|
)
|
|
}
|