| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import React, { Component, Fragment } from 'react';
- import ReactDOM from 'react-dom';
- import { brandingMapping, brandingObject } from './branding';
- import { certTemplate } from './cert';
- const label = 'unicraft'
- class Dashboard extends Component {
- render() {
- const renderHeader = () => {
- const BrandHeader = brandingMapping[label];
- return <BrandHeader />;
- }
- const renderCert = () => {
- const cert = certTemplate(label)
- console.log(cert);
-
- return cert.certLog;
- }
- console.log(Object.keys(brandingObject));
- return (
- <Fragment>
- <h1>Header</h1>
- { renderHeader() }
- <h1>Certificate</h1>
- { renderCert() }
- </Fragment>
- )
- }
- }
- ReactDOM.render(
- <Dashboard />,
- document.getElementById('root')
- );
|