From 74b344f042f0b009988353fffc30ac5397d41528 Mon Sep 17 00:00:00 2001 From: "zhili.wzl" Date: Mon, 20 Sep 2021 10:11:00 +0800 Subject: [PATCH] refactor(react): MainPanel -> StudioPanel --- packages/playground/src/main.tsx | 6 +++--- .../react/src/panels/{MainPanel.tsx => StudioPanel.tsx} | 4 ++-- packages/react/src/panels/index.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename packages/react/src/panels/{MainPanel.tsx => StudioPanel.tsx} (89%) diff --git a/packages/playground/src/main.tsx b/packages/playground/src/main.tsx index 94d8915e3..23135da10 100644 --- a/packages/playground/src/main.tsx +++ b/packages/playground/src/main.tsx @@ -9,7 +9,7 @@ import { ViewToolsWidget, OutlineTreeWidget, ResourceWidget, - MainPanel, + StudioPanel, CompositePanel, WorkspacePanel, ToolbarPanel, @@ -288,7 +288,7 @@ const App = () => { return ( - } actions={}> + } actions={}> @@ -333,7 +333,7 @@ const App = () => { - + ) diff --git a/packages/react/src/panels/MainPanel.tsx b/packages/react/src/panels/StudioPanel.tsx similarity index 89% rename from packages/react/src/panels/MainPanel.tsx rename to packages/react/src/panels/StudioPanel.tsx index c97f2c646..7c0b4f0ab 100644 --- a/packages/react/src/panels/MainPanel.tsx +++ b/packages/react/src/panels/StudioPanel.tsx @@ -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 = ({ +export const StudioPanel: React.FC = ({ logo, actions, ...props diff --git a/packages/react/src/panels/index.ts b/packages/react/src/panels/index.ts index 9fa96a3d7..90ddb5671 100644 --- a/packages/react/src/panels/index.ts +++ b/packages/react/src/panels/index.ts @@ -1,5 +1,5 @@ import './styles.less' -export * from './MainPanel' +export * from './StudioPanel' export * from './CompositePanel' export * from './SettingsPanel' export * from './WorkspacePanel'