Merge pull request #62 from kjannette/paymentUItweaks

Payment u itweaks
This commit is contained in:
S Jannette
2024-01-30 15:50:58 -06:00
committed by GitHub
6 changed files with 48 additions and 11 deletions

View File

@@ -109,10 +109,15 @@ const PaymentModal = ({
{splitEvery(Object.keys(paymentfields), fieldsChunkSize).map( {splitEvery(Object.keys(paymentfields), fieldsChunkSize).map(
(names, j) => ( (names, j) => (
<Row key={`row${j}-modal`}> <Row key={`row${j}-modal`}>
{j === 2 ? (
<div className="exp-date-hearder">Card Expiration Date</div>
) : (
<></>
)}
{names.map((name, i) => ( {names.map((name, i) => (
<Col <Col
key={`${name}${i + fieldsChunkSize * j}-modal`} key={`${name}${i + fieldsChunkSize * j}-modal`}
className="mb-3" className={j === 2 ? "mb3 short-column" : "mb-3"}
> >
<TextInput <TextInput
key={`${name}-modal-input`} key={`${name}-modal-input`}
@@ -129,6 +134,13 @@ const PaymentModal = ({
type={paymentfields[name].type} type={paymentfields[name].type}
values={paymentfields[name].values} values={paymentfields[name].values}
disabled={isBusy} disabled={isBusy}
inputClassName={
j === 2
? "skinny-input"
: j === 1 && i === 1
? "skinny-input"
: null
}
/> />
</Col> </Col>
))} ))}

View File

@@ -167,11 +167,7 @@ const SignupPage = () => {
practiceArea, practiceArea,
email, email,
} = dataValues; } = dataValues;
console.log(
"customerId, subscriptionId in saveUserData",
customerId,
subscriptionId
);
const userData = { const userData = {
docsAllowed, docsAllowed,
docsGenerated, docsGenerated,

View File

@@ -19,19 +19,19 @@ export const paymentfields = {
}, },
cardCvvCode: { cardCvvCode: {
required: true, required: true,
label: "Card CVV Number", label: "CVV Number",
maxLength: 5, maxLength: 5,
type: "cardCvvCode", type: "cardCvvCode",
}, },
cardExpirationMonth: { cardExpirationMonth: {
required: true, required: true,
label: "Card Expiration Month", label: "Month",
maxLength: 2, maxLength: 2,
type: "cardExpirationMonth", type: "cardExpirationMonth",
}, },
cardExpirationYear: { cardExpirationYear: {
required: true, required: true,
label: "Card Expiration Year", label: "Year",
maxLength: 4, maxLength: 4,
type: "cardExpirationYear", type: "cardExpirationYear",
}, },

View File

@@ -15,9 +15,15 @@ const TextInput = (props) => {
type, type,
disabled, disabled,
} = props; } = props;
console.log("inputClassName", inputClassName);
return ( return (
<div className="pe-input-container form-floating mb-3"> <div
className={
inputClassName
? `pe-input-container form-floating mb-3 ${inputClassName}`
: "pe-input-container form-floating mb-3"
}
>
{label ? ( {label ? (
<label htmlFor="signup" className="form-label"> <label htmlFor="signup" className="form-label">
{label} {label}

View File

@@ -84,6 +84,8 @@
margin-bottom: 12px; margin-bottom: 12px;
margin-right: 20px; margin-right: 20px;
padding-right: 20px; padding-right: 20px;
padding-bottom: 8px;
margin-bottom: 18px;
} }
.paymentmodal-order-summarybox { .paymentmodal-order-summarybox {
@@ -113,3 +115,16 @@
border-bottom: 1px solid #cecece; border-bottom: 1px solid #cecece;
margin-bottom: 4px; margin-bottom: 4px;
} }
.short-column {
max-width: 120px !important;
margin-right: 2.3rem;
margin-bottom: 1rem;
}
.exp-date-hearder {
margin-top: -14px;
margin-bottom: 9px;
margin-left: 13px;
padding-left: 7px;
}

View File

@@ -11,3 +11,11 @@
.select-option:hover { .select-option:hover {
background-color: white; background-color: white;
} }
.skinny-input {
width: 140px;
}
.skinny-column {
width: 140px !important;
}