mirror of
https://github.com/mathuo/dockview
synced 2025-08-14 05:06:02 +00:00
feat: update demo app
This commit is contained in:
parent
3b35997b2f
commit
dd81a1bbad
@ -9,7 +9,6 @@ import {
|
||||
PaneviewDropEvent,
|
||||
} from 'dockview';
|
||||
import { ControlCenter } from './controlCenter';
|
||||
import { toggleClass } from '../dom';
|
||||
import './sidebar.scss';
|
||||
|
||||
const components = {
|
||||
@ -33,7 +32,7 @@ export const Sidebar = (props: IGridviewPanelProps) => {
|
||||
|
||||
event.api.addPanel({
|
||||
id: '1',
|
||||
component: 'default',
|
||||
component: 'controlCenter',
|
||||
title: 'Control Center',
|
||||
});
|
||||
event.api.addPanel({
|
||||
|
@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import { ControlCenter } from '../layout-grid/controlCenter';
|
||||
|
||||
export interface RegisteredView {
|
||||
id: string;
|
||||
@ -50,19 +51,7 @@ VIEW_REGISTRY.register({
|
||||
title: 'Home',
|
||||
icon: 'home',
|
||||
isLocationEditable: true,
|
||||
component: () => {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
backgroundColor: 'lightblue',
|
||||
color: 'black',
|
||||
height: '100%',
|
||||
}}
|
||||
>
|
||||
Home
|
||||
</div>
|
||||
);
|
||||
},
|
||||
component: ControlCenter,
|
||||
});
|
||||
VIEW_REGISTRY.register({
|
||||
id: 'account_widget',
|
||||
|
Loading…
x
Reference in New Issue
Block a user