diff --git a/src/Pages/Reliability.js b/src/Pages/Reliability.js index 78b059c..7d80944 100644 --- a/src/Pages/Reliability.js +++ b/src/Pages/Reliability.js @@ -1,5 +1,5 @@ import React, { useState, useEffect, useCallback } from "react"; -import { DataGrid } from "@mui/x-data-grid"; +import { DataGrid, GridToolbar } from "@mui/x-data-grid"; import { Grid, Box, @@ -7,7 +7,8 @@ import { Typography, LinearProgress, CircularProgress, - Button + Button, + Stack } from "@mui/material"; import CountrySearch from "../Components/CountrySearch"; import OperatorSearch from "../Components/OperatorSearch"; @@ -179,6 +180,7 @@ const Reliability = () => { headerName: "Reliability", minWidth: 100, flex: 0.6, + valueFormatter: ({ value }) => `${value}%`, renderCell: renderReliabilityCell }, { @@ -262,12 +264,19 @@ const Reliability = () => { - - - + + + { onPaginationModelChange={setPaginationModel} slots={{ noRowsOverlay: CustomNoRowsOverlay, - loadingOverlay: LinearProgress + loadingOverlay: LinearProgress, + toolbar: GridToolbar }} sx={{ height: 550 }} /> diff --git a/src/Pages/Resilience.js b/src/Pages/Resilience.js index b4e3d0a..6ea5a41 100644 --- a/src/Pages/Resilience.js +++ b/src/Pages/Resilience.js @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { DataGrid } from "@mui/x-data-grid"; +import { DataGrid, GridToolbar } from "@mui/x-data-grid"; import { Grid, Box, @@ -7,7 +7,8 @@ import { Typography, LinearProgress, CircularProgress, - Button + Button, + Stack } from "@mui/material"; import CountrySearch from "../Components/CountrySearch"; import OperatorSearch from "../Components/OperatorSearch"; @@ -203,12 +204,19 @@ const Resilience = () => { - - - + + + { onPaginationModelChange={setPaginationModel} slots={{ noRowsOverlay: CustomNoRowsOverlay, - loadingOverlay: LinearProgress + loadingOverlay: LinearProgress, + toolbar: GridToolbar }} sx={{ height: 550 }} /> diff --git a/src/Pages/TableDialog.js b/src/Pages/TableDialog.js index a631790..6d8e20c 100644 --- a/src/Pages/TableDialog.js +++ b/src/Pages/TableDialog.js @@ -1,6 +1,6 @@ import React, { useState, useEffect } from "react"; -import { DataGrid } from "@mui/x-data-grid"; -import { Box, Grid, LinearProgress, Button, CircularProgress } from "@mui/material"; +import { DataGrid, GridToolbar } from "@mui/x-data-grid"; +import { Box, Grid, LinearProgress, Button, CircularProgress, Stack } from "@mui/material"; import { FaChevronLeft } from "react-icons/fa6"; import { Link, useLocation } from "react-router-dom"; import CustomNoRowsOverlay from "../Components/CustomNoRowsOverlay"; @@ -158,10 +158,19 @@ export default function Data() { Back - + + +