glass-app-manager
Version:
Informatica's Glass Framework CLI for bootstrapping
44 lines (40 loc) • 1.51 kB
JavaScript
import React from "react";
import { GlassContext as Context } from "glass-core";
import { GlassPanels, GlassPanel, GlassButton } from "glass-core";
import Constants from "./../../../../lib/Constants";
import { withRouter } from "react-router-dom";
function JobsCompletedPanel(props) {
return (
<Context.Consumer>
{workspaceManager => {
return (
<GlassPanels>
<GlassPanel order="1" colSpan="6">
This panel is being enclosed by "GlassPanels" component which
takes care of the margin between panels and contributions. Click
here to open Asset Workspace.
<div>
<GlassButton
onClick={() => {
workspaceManager.openWorkspace(
`${Constants.uniqueProductName}.SamplePage`,
`/${Constants.uniqueProductName}/SamplePage/1`,
"1"
);
}}
>
Go to Sample Page with id:1.
</GlassButton>
</div>
</GlassPanel>
<GlassPanel order="2" colSpan="6">
This panel is being enclosed by "GlassPanels" component which
takes care of the margin between panels and contributions
</GlassPanel>
</GlassPanels>
);
}}
</Context.Consumer>
);
}
export default withRouter(JobsCompletedPanel);