Skip to content

Commit 34c8b98

Browse files
committed
fix: code review
1 parent c2e6d17 commit 34c8b98

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);
@@ -144,7 +144,7 @@ function Editor({ theme, tutorialStore, hasEditor }: PanelProps) {
144144
);
145145
}
146146

147-
function Preview({
147+
function PreviewsSection({
148148
tutorialStore,
149149
terminalPanelRef,
150150
terminalExpanded,
@@ -203,7 +203,7 @@ function Preview({
203203
);
204204
}
205205

206-
function Terminal({
206+
function TerminalSection({
207207
tutorialStore,
208208
theme,
209209
terminalPanelRef,

0 commit comments

Comments
 (0)