refactor: set country based on user data

This commit is contained in:
2025-05-13 06:55:03 +05:30
parent 4851f34357
commit ffc880f6f8
6 changed files with 225 additions and 65 deletions

View File

@@ -146,7 +146,6 @@ const PaymentComponent = ({ amount, onSuccess }) => {
</div>
)}
{/* Show shipping info status */}
{shippingInfoCollected && (
<div className="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-4">
Shipping information collected
@@ -159,7 +158,6 @@ const PaymentComponent = ({ amount, onSuccess }) => {
</div>
)}
{/* Collect shipping info button */}
{!shippingInfoCollected && (
<button
onClick={() => setShowPopup(true)}