Skip to content

Commit

Permalink
♻️ fix(pro-editor): 调整 devtools api 名称
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jun 15, 2023
1 parent 2cedbb3 commit 10f1529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ProEditor/container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ import { useStyle } from './style';
export type ProEditorProps = ProEditorAppProps &
AppContainerProps &
StoreUpdaterProps & {
__STORE_DEVTOOLS__?: boolean | DevtoolsOptions;
__EDITOR_STORE_DEVTOOLS__?: boolean | DevtoolsOptions;
};

export const ProEditor: FC<ProEditorProps> = memo((props) => {
const { themeMode, theme, style, __STORE_DEVTOOLS__, editorRef, ...res } = props;
const { themeMode, theme, style, __EDITOR_STORE_DEVTOOLS__, editorRef, ...res } = props;
const { styles } = useStyle();

return (
<Provider devtoolOptions={__STORE_DEVTOOLS__}>
<Provider devtoolOptions={__EDITOR_STORE_DEVTOOLS__}>
<AppContainer themeMode={themeMode} theme={theme}>
<App className={styles.app} style={style}>
<Content {...res} />
Expand Down
2 changes: 1 addition & 1 deletion src/ProEditor/demos/buttonAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default () => (
<ProEditor
componentAsset={ButtonComponentAsset}
style={{ height: '100vh' }}
__STORE_DEVTOOLS__={{ name: 'ButtonEditor' }}
__EDITOR_STORE_DEVTOOLS__={{ name: 'ButtonEditor' }}
/>
);

0 comments on commit 10f1529

Please sign in to comment.