feat(contact-us): add customizable button text and center button content

Pass `buttonText="Submit request"` prop to ContactUsForm on contact page. Enhance button styles with flexbox centering for better alignment of text and loading spinner.
This commit is contained in:
AmirReza Jamali
2025-12-01 12:59:42 +03:30
parent b502b8a5f7
commit 1204b2d3db
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ const ContactUsForm = ({
}}
/>
<div className={`${colSpanClass} flex justify-end`}>
<button className="bg-(--primary) cursor-pointer w-fit text-white rounded-full py-4 px-6">
<button className="bg-(--primary) cursor-pointer w-fit text-white rounded-full py-4 px-6 flex justify-center items-center text-center">
{isLoading ? <Loading /> : buttonText}
</button>
</div>