From 7c4e13d11bc2fc5b0f03efc959dd551a30565e8a Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 2 Jan 2020 17:20:23 +0300 Subject: Create Scoreboard component & integrate with API --- src/index.js | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 5c657f9..38a79a6 100644 --- a/src/index.js +++ b/src/index.js @@ -1,10 +1,17 @@ import React, { useState } from 'react'; import ReactDOM from 'react-dom'; +import { + Typography, + Paper, + Container, +} from "@material-ui/core"; + import styled from 'styled-components'; import CssBaseline from '@material-ui/core/CssBaseline' import Header from './components/Header/Header'; +import Scoreboard from "./components/Scoreboard/Scoreboard"; const App = () => { @@ -15,11 +22,22 @@ const App = () => {
-

This is the {page} page!

-

- This text is rendered outside of Header component, but - interacting with Header can influence content of this page! -

+ + + This is the {page} page! + { + (page === 'scoreboard')? + () + : + ( +

+ This text is rendered outside of Header component, but + interacting with Header can influence content of this page! +

+ ) + } +
+
); }; -- cgit v1.2.3