Fixed a bug with What will you use it for, fixed a bug with the sticky pricing card, text change
This commit is contained in:
@@ -588,7 +588,7 @@ const ItemDetail: React.FC = () => {
|
||||
</div>
|
||||
|
||||
{/* Mobile Pricing Card - shown inline on mobile */}
|
||||
<div className="d-md-none mb-4">
|
||||
<div className="d-md-none mb-4" id="mobile-pricing-card">
|
||||
<div className="card sticky-pricing-card">
|
||||
<div className="card-body text-center">
|
||||
{(() => {
|
||||
@@ -1132,9 +1132,9 @@ const ItemDetail: React.FC = () => {
|
||||
<button
|
||||
className="btn btn-primary btn-lg"
|
||||
onClick={() => {
|
||||
const pricingCard = document.getElementById("pricing-card");
|
||||
if (pricingCard) {
|
||||
pricingCard.scrollIntoView({
|
||||
const mobilePricingCard = document.getElementById("mobile-pricing-card");
|
||||
if (mobilePricingCard) {
|
||||
mobilePricingCard.scrollIntoView({
|
||||
behavior: "smooth",
|
||||
block: "start",
|
||||
});
|
||||
|
||||
@@ -455,19 +455,20 @@ const RentItem: React.FC = () => {
|
||||
<>
|
||||
<div className="card mb-3">
|
||||
<div className="card-body">
|
||||
<h6 className="mb-3">
|
||||
<p className="mb-0">
|
||||
Add your payment method to complete your
|
||||
request. You'll only be charged if the owner
|
||||
approves your request
|
||||
</h6>
|
||||
<EmbeddedStripeCheckout
|
||||
rentalData={getRentalData()}
|
||||
onSuccess={() => setCompleted(true)}
|
||||
onError={(error) => setError(error)}
|
||||
/>
|
||||
approves your request.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<EmbeddedStripeCheckout
|
||||
rentalData={getRentalData()}
|
||||
onSuccess={() => setCompleted(true)}
|
||||
onError={(error) => setError(error)}
|
||||
/>
|
||||
|
||||
<div className="text-center mt-3">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user