Skip to content

Commit

Permalink
refactor(react): MainPanel -> StudioPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Sep 20, 2021
1 parent 764e7ec commit 74b344f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/playground/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ViewToolsWidget,
OutlineTreeWidget,
ResourceWidget,
MainPanel,
StudioPanel,
CompositePanel,
WorkspacePanel,
ToolbarPanel,
Expand Down Expand Up @@ -288,7 +288,7 @@ const App = () => {
return (
<Designer engine={engine}>
<Workbench>
<MainPanel logo={<Logo />} actions={<Actions />}>
<StudioPanel logo={<Logo />} actions={<Actions />}>
<CompositePanel>
<CompositePanel.Item title="panels.Component" icon="Component">
<ResourceWidget title="sources.Inputs" sources={[Input, Card]} />
Expand Down Expand Up @@ -333,7 +333,7 @@ const App = () => {
<SettingsPanel title="panels.PropertySettings">
<SettingsForm uploadAction="https://www.mocky.io/v2/5cc8019d300000980a055e76" />
</SettingsPanel>
</MainPanel>
</StudioPanel>
</Workbench>
</Designer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react'
import { usePrefix } from '../hooks'
import cls from 'classnames'
export interface IMainPanelProps {
export interface IStudioPanelProps {
style?: React.CSSProperties
className?: string
logo?: React.ReactNode
actions?: React.ReactNode
}

export const MainPanel: React.FC<IMainPanelProps> = ({
export const StudioPanel: React.FC<IStudioPanelProps> = ({
logo,
actions,
...props
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/panels/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './styles.less'
export * from './MainPanel'
export * from './StudioPanel'
export * from './CompositePanel'
export * from './SettingsPanel'
export * from './WorkspacePanel'
Expand Down

0 comments on commit 74b344f

Please sign in to comment.