From 54716c7c09a1f49d728e5e7635a7c44fd0fc82f6 Mon Sep 17 00:00:00 2001 From: Gala Date: Fri, 21 Oct 2022 10:55:45 +0200 Subject: [PATCH] fix build --- explorer/src/components/Gateways.ts | 14 +++++++------- explorer/src/pages/GatewayDetail/index.tsx | 2 +- explorer/src/pages/Gateways/index.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/explorer/src/components/Gateways.ts b/explorer/src/components/Gateways.ts index eba43bae6c..a6461839da 100644 --- a/explorer/src/components/Gateways.ts +++ b/explorer/src/components/Gateways.ts @@ -20,13 +20,13 @@ export function gatewayToGridRow(arrayOfGateways: GatewayResponse): GatewayRowTy return !arrayOfGateways ? [] : arrayOfGateways.map((gw) => ({ - id: gw.owner, - owner: gw.owner, - identity_key: gw.gateway.identity_key || '', - location: gw?.gateway?.location || '', - bond: gw.pledge_amount.amount || 0, - host: gw.gateway.host || '', - })); + id: gw.owner, + owner: gw.owner, + identity_key: gw.gateway.identity_key || '', + location: gw?.gateway?.location || '', + bond: gw.pledge_amount.amount || 0, + host: gw.gateway.host || '', + })); } export function gatewayEnrichedToGridRow( diff --git a/explorer/src/pages/GatewayDetail/index.tsx b/explorer/src/pages/GatewayDetail/index.tsx index 9656cfe05d..3f3f6cd0a8 100644 --- a/explorer/src/pages/GatewayDetail/index.tsx +++ b/explorer/src/pages/GatewayDetail/index.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Alert, AlertTitle, Box, CircularProgress, Grid, Typography } from '@mui/material'; +import { Alert, AlertTitle, Box, CircularProgress, Grid } from '@mui/material'; import { useParams } from 'react-router-dom'; import { GatewayResponseItem } from '../../typeDefs/explorer-api'; import { ColumnsType, DetailTable } from '../../components/DetailTable'; diff --git a/explorer/src/pages/Gateways/index.tsx b/explorer/src/pages/Gateways/index.tsx index 3150b499a0..683d0e0edc 100644 --- a/explorer/src/pages/Gateways/index.tsx +++ b/explorer/src/pages/Gateways/index.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Link as RRDLink, useParams, useNavigate } from 'react-router-dom'; +import { Link as RRDLink } from 'react-router-dom'; import { Button, Card, Grid, Typography, Link as MuiLink } from '@mui/material'; import { GridColDef, GridRenderCellParams } from '@mui/x-data-grid'; import { SelectChangeEvent } from '@mui/material/Select';