Skip to content

Commit

Permalink
changed button style
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritam12F committed Aug 11, 2024
1 parent 029fe11 commit 1cdb320
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/components/AddNewPayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,26 @@ export const AddPayout = () => {
id="address"
></Input>
</div>
<Button
onClick={async () => {
try {
await axios.post('/api/addpayout', {
payoutType,
address,
});
toast.success(
`Added ${payoutType === 'upi' ? payoutType.toUpperCase() : payoutType} successfully!`,
);
} catch {
toast.error('Error adding address!');
}
}}
>
Add {payoutType === 'upi' ? 'UPI' : 'Solana'}
</Button>
<div className="flex justify-center">
<Button
className="min-w-52"
onClick={async () => {
try {
await axios.post('/api/addpayout', {
payoutType,
address,
});
toast.success(
`Added ${payoutType === 'upi' ? payoutType.toUpperCase() : payoutType} successfully!`,
);
} catch {
toast.error('Error adding address!');
}
}}
>
Add {payoutType === 'upi' ? 'UPI' : 'Solana'}
</Button>
</div>
</diV>
);
};

0 comments on commit 1cdb320

Please sign in to comment.