Skip to content

Commit 45bd732

Browse files
committed
fix: integrations
1 parent 05f5243 commit 45bd732

File tree

1 file changed

+29
-41
lines changed

1 file changed

+29
-41
lines changed
Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,36 @@
11
import { Tabs } from '@blueprintjs/core';
22

3-
import { useAppSettings } from 'rendered/hooks/useAppSettings';
4-
53
import { Root } from './Settings.styles';
64
import { SettingsAppearance } from '../SettingsAppearance';
75
import { SettingsIntegrations } from '../SettingsIntegrations';
86
import { 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+
);

0 commit comments

Comments
 (0)