Skip to content

Commit

Permalink
/ refoctor with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
windy-ux committed Jan 10, 2025
1 parent 2b46772 commit c3a26a0
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 76 deletions.
18 changes: 7 additions & 11 deletions explorer/src/pages/Delegations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ const Banner = ({ onClose }: { onClose: () => void }) => {
const { copy } = useClipboard();

return (
<Alert
severity="info"
<Alert severity="info"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
action={
<IconButton size="small" onClick={onClose}>
Expand Down Expand Up @@ -224,15 +223,12 @@ const DelegationsPage = () => {
}}
/>
)}
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
{showBanner && <Banner onClose={() => setShowBanner(false)} />}
<Box display="flex" justifyContent="space-between" alignItems="center">
Expand Down
15 changes: 6 additions & 9 deletions explorer/src/pages/GatewayDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ const PageGatewayDetailsWithState = ({ selectedGateway }: { selectedGateway: Gat

return (
<Box component="main">
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Gateway Detail" />
<Grid container>
Expand Down
17 changes: 7 additions & 10 deletions explorer/src/pages/Gateways/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,13 @@ export const PageGateways: FCWithChildren = () => {
return (
<>
<Box mb={2}>
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Gateways" />
</Box>
<Grid container>
Expand Down
15 changes: 6 additions & 9 deletions explorer/src/pages/MixnodeDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,12 @@ const PageMixnodeDetailWithState: FCWithChildren = () => {
const isMobile = useIsMobile();
return (
<Box component="main">
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Mixnode Detail" />
<Grid container spacing={2} mt={1} mb={6}>
Expand Down
15 changes: 6 additions & 9 deletions explorer/src/pages/Mixnodes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,12 @@ export const PageMixnodes: FCWithChildren = () => {
return (
<DelegationsProvider>
<Box mb={2}>
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Mixnodes" />
</Box>
Expand Down
15 changes: 6 additions & 9 deletions explorer/src/pages/MixnodesMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,12 @@ export const PageMixnodesMap: FCWithChildren = () => {
<Box component="main" sx={{ flexGrow: 1 }}>
<Grid>
<Grid item data-testid="mixnodes-globe">
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Mixnodes Around the Globe" />
</Grid>
Expand Down
17 changes: 7 additions & 10 deletions explorer/src/pages/Overview/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Alert, AlertTitle, Box, Button, Grid, IconButton, Link, Typography } from '@mui/material';
import { Alert, Box, Grid, Link, Typography } from '@mui/material';
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
import { useTheme } from '@mui/material/styles';
import { useNavigate } from 'react-router-dom';
Expand All @@ -24,15 +24,12 @@ export const PageOverview: FCWithChildren = () => {
<Box component="main" sx={{ flexGrow: 1 }}>
<Grid>
<Grid item paddingBottom={3}>
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Overview" />
</Grid>
Expand Down
15 changes: 6 additions & 9 deletions explorer/src/pages/ServiceProviders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,12 @@ export const ServiceProviders = () => {
return (
<>
<Box mb={2}>
<Alert
severity="warning"
sx={{ mb: 3, fontSize: 'medium', width: '100%' }}
>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
<Alert severity="warning" sx={{ mb: 3, fontSize: 'medium', width: '100%' }}>
<Box>
<Typography>
You are now viewing the legacy Nym mixnet explorer. Explorer 2.0 is coming soon, in the first quarter of 2025.
</Typography>
</Box>
</Alert>
<Title text="Service Providers" />
</Box>
Expand Down

0 comments on commit c3a26a0

Please sign in to comment.