File tree Expand file tree Collapse file tree 1 file changed +29
-41
lines changed
src/rendered/components/Settings Expand file tree Collapse file tree 1 file changed +29
-41
lines changed Original file line number Diff line number Diff line change 11import { Tabs } from '@blueprintjs/core' ;
22
3- import { useAppSettings } from 'rendered/hooks/useAppSettings' ;
4-
53import { Root } from './Settings.styles' ;
64import { SettingsAppearance } from '../SettingsAppearance' ;
75import { SettingsIntegrations } from '../SettingsIntegrations' ;
86import { SettingsGroups } from '../SettingsGroups' ;
97
10- export const Settings = ( ) => {
11- const { editors, shells, selectedEditor, selectedShell } = useAppSettings ( ) ;
12-
13- const showIntegrations = Boolean ( editors . length && selectedEditor ) || Boolean ( shells . length && selectedShell ) ;
14-
15- return (
16- < Root >
17- < Tabs
18- vertical
19- defaultSelectedTabId = "appearance"
20- >
21- < Tabs . Tab
22- icon = "style"
23- id = "appearance"
24- panel = { < SettingsAppearance /> }
25- title = "Appearance"
26- />
27-
28- { showIntegrations && (
29- < Tabs . Tab
30- icon = "data-lineage"
31- id = "integrations"
32- panel = { < SettingsIntegrations /> }
33- title = "Integrations"
34- />
35- ) }
36-
37- < Tabs . Tab
38- icon = "group-objects"
39- id = "groups"
40- panel = { < SettingsGroups /> }
41- title = "Groups"
42- />
43-
44- < Tabs . Expander />
45- </ Tabs >
46- </ Root >
47- ) ;
48- } ;
8+ export const Settings = ( ) => (
9+ < Root >
10+ < Tabs
11+ vertical
12+ defaultSelectedTabId = "appearance"
13+ >
14+ < Tabs . Tab
15+ icon = "style"
16+ id = "appearance"
17+ panel = { < SettingsAppearance /> }
18+ title = "Appearance"
19+ />
20+
21+ < Tabs . Tab
22+ icon = "data-lineage"
23+ id = "integrations"
24+ panel = { < SettingsIntegrations /> }
25+ title = "Integrations"
26+ />
27+
28+ < Tabs . Tab
29+ icon = "group-objects"
30+ id = "groups"
31+ panel = { < SettingsGroups /> }
32+ title = "Groups"
33+ />
34+ </ Tabs >
35+ </ Root >
36+ ) ;
You can’t perform that action at this time.
0 commit comments