chore: update new consumer variables in example md file & update in handlebars template

This commit is contained in:
Marvin9
2020-10-04 18:05:16 +05:30
parent e2564645e5
commit 75e184a0dd
2 changed files with 4 additions and 2 deletions
@@ -3,6 +3,7 @@
ExampleComponent.tsx reference
```tsx
import { customPageTheme } from '@backstage/theme';
import React, { FC } from 'react';
import { Typography, Grid } from '@material-ui/core';
import {
@@ -25,7 +26,7 @@ const ExampleComponent: FC<{}> = () => {
const profile = identityApi.getProfile();
return (
<Page theme={pageTheme.tool}>
<Page pageTheme={customPageTheme.pageTheme.tool}>
<Header
title="Welcome to github-playground!"
subtitle="Optional subtitle"
@@ -1,3 +1,4 @@
import { customPageTheme } from '@backstage/theme';
import React, { FC } from 'react';
import { Typography, Grid } from '@material-ui/core';
import {
@@ -13,7 +14,7 @@ import {
import ExampleFetchComponent from '../ExampleFetchComponent';
const ExampleComponent: FC<{}> = () => (
<Page theme={pageTheme.tool}>
<Page pageTheme={customPageTheme.pageTheme.tool}>
<Header title="Welcome to {{ id }}!" subtitle="Optional subtitle">
<HeaderLabel label="Owner" value="Team X" />
<HeaderLabel label="Lifecycle" value="Alpha" />