Skip to content

Commit

Permalink
remove switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Aug 20, 2024
1 parent eede322 commit 40c0c2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
22 changes: 1 addition & 21 deletions src/pages/orders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import {
Box,
Button,
CircularProgress,
FormControlLabel,
Paper,
Switch,
Typography,
useTheme,
} from '@mui/material';
Expand Down Expand Up @@ -35,8 +33,6 @@ const OrderDashboard = () => {
state: { activeAccount },
} = useAccounts();

const [expiredOnly, watchExpired] = useState(false);

const [ordersToShow, setOrdersToShow] = useState<Order[]>([]);
const [orderSelected, selectOrder] = useState<Order | undefined>();

Expand Down Expand Up @@ -82,23 +78,7 @@ const OrderDashboard = () => {
Explorer the orders
</Typography>
</Box>
<Box sx={{ display: 'flex', gap: '1.5rem', height: '3.25rem' }}>
<FormControlLabel
control={
<Switch
color='success'
checked={expiredOnly}
onChange={(e) => watchExpired(e.target.checked)}
/>
}
label='Expired Only'
labelPlacement='start'
sx={{
color: theme.palette.common.black,
padding: '0.25rem',
}}
/>

<Box sx={{ display: 'flex', gap: '1.5rem', height: '2.75rem' }}>
<ActionButton
label='Create New Order'
onClick={() => openOrderCreationModal(true)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/paras/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const ParachainManagement = () => {
Watch parachains state, register and manage parachains
</Typography>
</Box>
<Box sx={{ display: 'flex', gap: '1.5rem', height: '3.25rem' }}>
<Box sx={{ display: 'flex', gap: '1.5rem', height: '2.75rem' }}>
<FormControlLabel
control={
<Switch
Expand Down

0 comments on commit 40c0c2d

Please sign in to comment.