Skip to content

Commit 4ff2971

Browse files
committed
fix: code review
1 parent 3470ac6 commit 4ff2971

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/components/react/src/Panels/WorkspacePanel.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function WorkspacePanel({ tutorialStore, theme }: Props) {
4141

4242
return (
4343
<PanelGroup className={resizePanelStyles.PanelGroup} direction="vertical">
44-
<Editor
44+
<EditorSection
4545
theme={theme}
4646
tutorialStore={tutorialStore}
4747
hasEditor={hasEditor}
@@ -55,7 +55,7 @@ export function WorkspacePanel({ tutorialStore, theme }: Props) {
5555
disabled={!hasEditor}
5656
/>
5757

58-
<Preview
58+
<PreviewsSection
5959
theme={theme}
6060
tutorialStore={tutorialStore}
6161
terminalPanelRef={terminalPanelRef}
@@ -71,7 +71,7 @@ export function WorkspacePanel({ tutorialStore, theme }: Props) {
7171
disabled={hideTerminalPanel || !hasPreviews}
7272
/>
7373

74-
<Terminal
74+
<TerminalSection
7575
tutorialStore={tutorialStore}
7676
theme={theme}
7777
terminalPanelRef={terminalPanelRef}
@@ -84,7 +84,7 @@ export function WorkspacePanel({ tutorialStore, theme }: Props) {
8484
);
8585
}
8686

87-
function Editor({ theme, tutorialStore, hasEditor }: PanelProps) {
87+
function EditorSection({ theme, tutorialStore, hasEditor }: PanelProps) {
8888
const [helpAction, setHelpAction] = useState<'solve' | 'reset'>('reset');
8989
const selectedFile = useStore(tutorialStore.selectedFile);
9090
const currentDocument = useStore(tutorialStore.currentDocument);
@@ -146,7 +146,7 @@ function Editor({ theme, tutorialStore, hasEditor }: PanelProps) {
146146
);
147147
}
148148

149-
function Preview({
149+
function PreviewsSection({
150150
tutorialStore,
151151
terminalPanelRef,
152152
terminalExpanded,
@@ -212,7 +212,7 @@ function Preview({
212212
);
213213
}
214214

215-
function Terminal({
215+
function TerminalSection({
216216
tutorialStore,
217217
theme,
218218
terminalPanelRef,

0 commit comments

Comments
 (0)