Restored layout and tiny modifications

This commit was merged in pull request #295.
This commit is contained in:
2023-07-12 17:14:13 +01:00
parent 26647b088f
commit 5e248bc108
2 changed files with 25 additions and 27 deletions
+2 -22
View File
@@ -144,7 +144,7 @@ function AddFundDollars(props) {
<>
<div className="w-full">
{/* switch button */}
<div className="flex justify-between">
<div className="flex">
<form className="add-fund-info flex items-center gap-3">
<h1 className="text-xl font-bold text-dark-gray dark:text-white tracking-tighter my-1">
{props.currency == "US Dollars" && "Payment Method"}
@@ -184,26 +184,6 @@ function AddFundDollars(props) {
</label>
</div>
</form>
<form className="add-fund-info flex items-center gap-3">
<h1 className="text-xl font-bold text-dark-gray dark:text-white tracking-tighter my-1">
{props.currency == "US Dollars"
? "Amount (USD)"
: "Amount (Naira)"}
</h1>
<div className="field w-full max-w-[8rem]">
<InputCom
fieldClass="px-6"
type="text"
name="amount"
placeholder="0"
value={props.input}
inputHandler={props.handleChange}
/>
<p className="text-base text-red-500 h-5">
{props.inputError && props.inputError}
</p>
</div>
</form>
</div>
<hr />
{/* END OF switch button */}
@@ -215,7 +195,7 @@ function AddFundDollars(props) {
<LoadingSpinner size="10" color="sky-blue" />
) : payListCards?.data?.length ? (
<select
className="my-3 w-full rounded-full p-4 outline-none border-none"
className="my-3 w-full rounded-full p-4 outline-none border-none text-base text-black dark:text-gray-100 bg-[#dce2e6] dark:bg-[#5e6278] border"
value={prevCardDetails["payment-card"]?.card_uid}
id="payment-card"
name="payment-card"