Skip to content

Commit

Permalink
remove progress button
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Oct 13, 2024
1 parent f31139d commit 1a0b760
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 57 deletions.

This file was deleted.

36 changes: 0 additions & 36 deletions src/components/Elements/Buttons/ProgressButton/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Elements/Buttons/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './ActionButton';
export * from './ProgressButton';
19 changes: 6 additions & 13 deletions src/components/Orders/Modals/OrderProcessor/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Alert,
Box,
Button,
Dialog,
DialogActions,
DialogContent,
Expand All @@ -12,14 +11,13 @@ import {
Typography,
useTheme,
} from '@mui/material';
import { Button } from '@region-x/components';
import { countMaskOnes } from 'coretime-utils';
import { useState } from 'react';

import { useSubmitExtrinsic } from '@/hooks/submitExtrinsic';
import { getBalanceString } from '@/utils/functions';

import { ProgressButton } from '@/components/Elements';

import { useAccounts } from '@/contexts/account';
import { useRegionXApi, useRelayApi } from '@/contexts/apis';
import { ApiState } from '@/contexts/apis/types';
Expand Down Expand Up @@ -181,25 +179,20 @@ export const OrderProcessorModal = ({
<Box width='100%' gap='0.5rem' mt='1.5rem' display='flex'>
<Button
onClick={onClose}
variant='outlined'
color='dark'
fullWidth
sx={{
borderRadius: '1rem',
}}
data-cy='btn-close-order-processor-modal'
>
Close
</Button>
<ProgressButton
<Button
fullWidth
label='Fulfill'
sx={{
borderRadius: '1rem',
}}
onClick={onProcess}
disabled={!checkRequirements(order, regionSelected) || working}
loading={working}
/>
>
Fulfill
</Button>
</Box>
</DialogActions>
</Dialog>
Expand Down

0 comments on commit 1a0b760

Please sign in to comment.