2 Commits 5312c89aac ... 83cbb4929b

Author SHA1 Message Date
  Oleksandr Korniienko 83cbb4929b Design updates 3 years ago
  Oleksandr Korniienko 5312c89aac Design updates 3 years ago
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/Loading.tsx

+ 3 - 2
src/components/Loading.tsx

@@ -1,15 +1,16 @@
 import React from "react";
 import React from "react";
 import { Button, Spinner } from "react-bootstrap";
 import { Button, Spinner } from "react-bootstrap";
 import { Grid } from "@material-ui/core";
 import { Grid } from "@material-ui/core";
+import {GridSize} from "@material-ui/core/Grid/Grid";
 
 
-const Loading = (props: { target?: string, gridSize?: number }) => {
+const Loading = (props: { target?: string, gridSize?: GridSize }) => {
   const { gridSize, target } = props;
   const { gridSize, target } = props;
   const title = target ? `Fetching ${target}` : "Connecting to Websocket";
   const title = target ? `Fetching ${target}` : "Connecting to Websocket";
   return (
   return (
     <Grid
     <Grid
       style={{ textAlign: "center", backgroundColor: "#000", color: "#fff" }}
       style={{ textAlign: "center", backgroundColor: "#000", color: "#fff" }}
+      lg={`${gridSize ? gridSize!! : '6'}`}
       item
       item
-      lg={gridSize | 6}
     >
     >
       <Button variant="warning" className="m-1 py-0 mr-2 mt-3">
       <Button variant="warning" className="m-1 py-0 mr-2 mt-3">
         <Spinner animation="border" variant="dark" size="sm" className="mr-1" />
         <Spinner animation="border" variant="dark" size="sm" className="mr-1" />