Skip to content

Commit

Permalink
chore: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Sep 30, 2023
1 parent 08ec3fd commit 4c142b9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/docs/sandboxes/ide-example/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,9 @@ const App = (props: { theme?: string }) => {
if (event.ctrlKey) {
if (event.code === 'ArrowLeft') {
const leftSidebarPanel = api.getPanel('left-sidebar-id');
const rightSidebarPanel = api.getPanel('right-sidebar-id');

// const width = rightSidebarPanel?.api.width;

if (leftSidebarPanel) {
leftSidebarPanel.api.setVisible(false);

// if (rightSidebarPanel && typeof width === 'number') {
// rightSidebarPanel.api.setSize({ width });
// }
}
}
}
Expand All @@ -128,7 +121,6 @@ const App = (props: { theme?: string }) => {

if (leftSidebarPanel) {
leftSidebarPanel.api.setVisible(true);
// leftSidebarPanel.api.setSize({ width: 200 });
}
}
};
Expand Down

0 comments on commit 4c142b9

Please sign in to comment.