Skip to content

Commit

Permalink
transfer button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Apr 27, 2024
1 parent 3adf70f commit dfbbc49
Showing 1 changed file with 27 additions and 29 deletions.
56 changes: 27 additions & 29 deletions src/pages/transfer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import ArrowDownward from '@mui/icons-material/ArrowDownwardOutlined';
import {
Box,
Button,
DialogActions,
Link,
Stack,
Typography,
} from '@mui/material';
import { Box, Button, Link, Stack, Typography } from '@mui/material';
import { Keyring } from '@polkadot/api';
import { Region } from 'coretime-utils';
import { useEffect, useState } from 'react';
Expand Down Expand Up @@ -66,7 +59,7 @@ const TransferPage = () => {
const [working, setWorking] = useState(false);

const [newOwner, setNewOwner] = useState('');
const [originChain, setOriginChain] = useState<ChainType>(ChainType.CORETIME);
const [originChain, setOriginChain] = useState<ChainType>(ChainType.RELAY);
const [destinationChain, setDestinationChain] = useState<ChainType>(
ChainType.CORETIME
);
Expand Down Expand Up @@ -318,26 +311,31 @@ const TransferPage = () => {
/>
</Stack>
)}
<Box margin='2rem 0 0 0'>
<DialogActions>
<Link href='/'>
<Button
variant='outlined'
sx={{
borderRadius: 100,
bgcolor: theme.palette.common.white,
textTransform: 'capitalize',
}}
>
Home
</Button>
</Link>
<ProgressButton
label='Transfer'
onClick={handleTransfer}
loading={working}
/>
</DialogActions>
<Box
margin='2rem 0 0 0'
sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
}}
>
<Link href='/'>
<Button
variant='outlined'
sx={{
borderRadius: 100,
bgcolor: theme.palette.common.white,
textTransform: 'capitalize',
}}
>
Home
</Button>
</Link>
<ProgressButton
label='Transfer'
onClick={handleTransfer}
loading={working}
/>
</Box>
</Box>
</Box>
Expand Down

0 comments on commit dfbbc49

Please sign in to comment.