Skip to content

Commit bdc8db1

Browse files
committed
Remove editorWidth from side content
1 parent ee4c5ee commit bdc8db1

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/commons/sideContent/SideContent.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212

1313
export type SideContentProps = {
1414
renderActiveTabPanelOnly?: boolean;
15-
editorWidth?: string;
1615
tabs?: {
1716
beforeDynamicTabs: SideContentTab[];
1817
afterDynamicTabs: SideContentTab[];
@@ -27,7 +26,6 @@ const renderTab = (
2726
tab: SideContentTab,
2827
shouldAlert: boolean,
2928
workspaceLocation?: SideContentLocation,
30-
editorWidth?: string,
3129
sideContentHeight?: number
3230
) => {
3331
const iconSize = 20;
@@ -56,7 +54,6 @@ const renderTab = (
5654
props: {
5755
...tab.body.props,
5856
workspaceLocation,
59-
editorWidth,
6057
sideContentHeight
6158
}
6259
}
@@ -66,7 +63,7 @@ const renderTab = (
6663
return <Tab key={tabId} {...tabProps} panel={tabPanel} />;
6764
};
6865

69-
const SideContent = ({ renderActiveTabPanelOnly, editorWidth, ...props }: SideContentProps) => (
66+
const SideContent = ({ renderActiveTabPanelOnly, ...props }: SideContentProps) => (
7067
<SideContentProvider {...props}>
7168
{({ tabs: allTabs, alerts: tabAlerts, changeTabsCallback, selectedTab, height }) => (
7269
<div className="side-content">
@@ -80,13 +77,7 @@ const SideContent = ({ renderActiveTabPanelOnly, editorWidth, ...props }: SideCo
8077
>
8178
{allTabs.map(tab => {
8279
const tabId = getTabId(tab);
83-
return renderTab(
84-
tab,
85-
tabAlerts.includes(tabId),
86-
props.workspaceLocation,
87-
editorWidth,
88-
height
89-
);
80+
return renderTab(tab, tabAlerts.includes(tabId), props.workspaceLocation, height);
9081
})}
9182
</Tabs>
9283
</div>

0 commit comments

Comments
 (0)