feat: update demo app

This commit is contained in:
mathuo 2021-10-20 23:23:43 +01:00
parent 3b35997b2f
commit dd81a1bbad
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
2 changed files with 3 additions and 15 deletions

View File

@ -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({

View File

@ -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',