Skip to content

Commit

Permalink
feat: update button
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrskr committed Nov 30, 2023
1 parent b8abda1 commit 3a48b97
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/client/pages/IssuePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const IssuePage: React.FC = () => {
display: "flex",
alignItems: "center",
justifyContent: "center",
height: "100%",
height: "100vh",
}}
>
<InteractionsWidget></InteractionsWidget>
Expand Down
19 changes: 15 additions & 4 deletions frontend/src/pages/client/pages/components/InteractionsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const InteractionsWidget: React.FC = () => {
try {
await contract.scheduleOrder(
ASSETS[asset].address!,
data.amount,
ethers.utils.parseEther(data.amount.toString()),
!!value
);

Expand Down Expand Up @@ -98,7 +98,8 @@ export const InteractionsWidget: React.FC = () => {
<Box
sx={{
display: "flex",
flexDirection: "column"
paddingTop: "32px",
flexDirection: "column",
}}
>
<Typography>Select asset:</Typography>
Expand All @@ -123,10 +124,20 @@ export const InteractionsWidget: React.FC = () => {
</CardContent>
<CardActions>
{!signer && (
<Button onClick={connectWallet}>Connect your wallet</Button>
<Button
sx={{ width: "100%" }}
variant="contained"
onClick={connectWallet}
>
Connect your wallet
</Button>
)}
{signer && (
<Button size="small" onClick={form.handleSubmit(confirm)}>
<Button
sx={{ width: "100%" }}
variant="contained"
onClick={form.handleSubmit(confirm)}
>
Confirm
</Button>
)}
Expand Down

0 comments on commit 3a48b97

Please sign in to comment.