Skip to content

Commit

Permalink
ui: demo of UI CCL component
Browse files Browse the repository at this point in the history
  • Loading branch information
couchand committed Nov 6, 2017
1 parent a270c75 commit d28bfee
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/ui/ccl/src/views/shared/components/licenseType/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";

/**
* LicenseType is an indicator showing the current build license.
*/
export default class LicenseType extends React.Component<{}, {}> {
render() {
return (
<div>
<h1>CCL</h1>
</div>
);
}
}
2 changes: 2 additions & 0 deletions pkg/ui/src/views/app/containers/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { TitledComponent } from "src/interfaces/layout";
import NavigationBar from "src/views/app/components/layoutSidebar";
import TimeWindowManager from "src/views/app/containers/timewindow";
import AlertBanner from "src/views/app/containers/alertBanner";
import LicenseType from "src/views/shared/components/licenseType";

function isTitledComponent(obj: Object | TitledComponent): obj is TitledComponent {
return obj && _.isFunction((obj as TitledComponent).title);
Expand Down Expand Up @@ -39,6 +40,7 @@ export default class extends React.Component<RouterState, {}> {
<AlertBanner/>
<NavigationBar/>
<StickyContainer className="page">
<LicenseType />
{
// TODO(mrtracy): The title can be moved down to individual pages,
// it is not always the top element on the page (for example, on
Expand Down
14 changes: 14 additions & 0 deletions pkg/ui/src/views/shared/components/licenseType/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";

/**
* LicenseType is an indicator showing the current build license.
*/
export default class LicenseType extends React.Component<{}, {}> {
render() {
return (
<div>
<h1>OSS</h1>
</div>
);
}
}

0 comments on commit d28bfee

Please sign in to comment.