switched vars
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
4ae64963c4
commit
9a43bacb85
|
@ -45,10 +45,10 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|||
const webDavIcon = new LabIcon({ name: 'ui-components:webdav-icon', svgstr: Icon});
|
||||
|
||||
const label = "Data Pool"
|
||||
const content = new DataPoolWidget();
|
||||
const content = new DataPoolWidget(label);
|
||||
const widget = new MainAreaWidget({content});
|
||||
widget.id = 'jupyterlab-data-pool:plugin';
|
||||
widget.title.label = 'Data Pool';
|
||||
widget.title.label = label
|
||||
widget.title.closable = true;
|
||||
widget.title.icon = webDavIcon
|
||||
|
||||
|
|
|
@ -9,23 +9,25 @@ const divStyle = {
|
|||
|
||||
};
|
||||
export class DataPoolWidget extends ReactWidget {
|
||||
applicationName: string = ''
|
||||
constructor() {
|
||||
applicationName = ""
|
||||
constructor(label: string) {
|
||||
super();
|
||||
this.applicationName = "Data Pool"
|
||||
this.applicationName = label
|
||||
}
|
||||
|
||||
render(): JSX.Element {
|
||||
|
||||
return (<div style={divStyle}><TmpLayout /></div>);
|
||||
return (<div style={divStyle}><TmpLayout label={this.applicationName} /></div>);
|
||||
}
|
||||
}
|
||||
interface LayoutProps {
|
||||
label: string
|
||||
};
|
||||
|
||||
|
||||
const TmpLayout = () => {
|
||||
const TmpLayout = (props: LayoutProps) => {
|
||||
return (<Container >
|
||||
<Row>
|
||||
<Col><h2>Data Pool</h2>
|
||||
<Col><h2>{props.label}</h2>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
|
|
Loading…
Reference in New Issue