From 5a70e2d5195ca8c398e422dea9b2acc4955e35e9 Mon Sep 17 00:00:00 2001 From: Salman Najah Date: Sat, 17 Jan 2026 23:50:45 +0530 Subject: [PATCH 1/7] Migrate settings pages to Tailwind --- .../components/Checkout/CreditCardInput.tsx | 25 +- ...alanceForfeitOnPayoutMethodChangeModal.tsx | 8 +- app/javascript/components/CustomDomain.tsx | 31 +- .../AdvancedPage/AccountDeletionSection.tsx | 8 +- .../Settings/AdvancedPage/ApplicationForm.tsx | 77 +- .../AdvancedPage/ApplicationsSection.tsx | 21 +- .../AdvancedPage/BlockEmailsSection.tsx | 55 +- .../Settings/AdvancedPage/CreditCardForm.tsx | 26 +- .../AdvancedPage/CustomDomainSection.tsx | 22 +- .../NotificationEndpointSection.tsx | 44 +- .../ProductLevelSupportEmailsForm.tsx | 23 +- .../PaymentsPage/AccountDetailsSection.tsx | 868 ++++++------- .../PaymentsPage/AusBackTaxesSection.tsx | 90 +- .../PaymentsPage/BankAccountSection.tsx | 1133 +++++++++-------- .../PaymentsPage/PayPalConnectSection.tsx | 40 +- .../PaymentsPage/PayPalEmailSection.tsx | 17 +- .../PaymentsPage/StripeConnectSection.tsx | 19 +- .../pages/Oauth/Applications/Edit.tsx | 8 +- app/javascript/pages/Settings/Main/Show.tsx | 252 ++-- .../pages/Settings/Password/Show.tsx | 34 +- .../pages/Settings/Payments/Show.tsx | 93 +- .../pages/Settings/Profile/Show.tsx | 156 +-- app/javascript/pages/Settings/Team/Show.tsx | 56 +- .../Settings/ThirdPartyAnalytics/Show.tsx | 167 +-- 24 files changed, 1694 insertions(+), 1579 deletions(-) diff --git a/app/javascript/components/Checkout/CreditCardInput.tsx b/app/javascript/components/Checkout/CreditCardInput.tsx index 7f831b923e..4932ef4a14 100644 --- a/app/javascript/components/Checkout/CreditCardInput.tsx +++ b/app/javascript/components/Checkout/CreditCardInput.tsx @@ -1,6 +1,5 @@ import { CardElement, Elements } from "@stripe/react-stripe-js"; import { StripeCardElement, StripeElementStyleVariant, StripeCardElementChangeEvent } from "@stripe/stripe-js"; -import cx from "classnames"; import * as React from "react"; import { SavedCreditCard } from "$app/parsers/card"; @@ -9,6 +8,9 @@ import { getCssVariable } from "$app/utils/styles"; import { useFont } from "$app/components/DesignSettings"; import { Icon } from "$app/components/Icons"; +import { Fieldset, Legend } from "$app/components/ui/Fieldset"; +import { InputGroup } from "$app/components/ui/InputGroup"; +import { Label } from "$app/components/ui/Label"; export const CreditCardInput = ({ disabled, @@ -32,25 +34,26 @@ export const CreditCardInput = ({ const [baseStripeStyle, setBaseStripeStyle] = React.useState(null); return ( -
- - +
+ + {savedCreditCard ? ( ) : null} - + {savedCreditCard && useSavedCard ? ( -
+ {savedCreditCard.number} {savedCreditCard.expiration_date} -
+ ) : ( -
+ {baseStripeStyle == null ? ( { if (el == null) return; const inputStyle = window.getComputedStyle(el); @@ -67,7 +70,7 @@ export const CreditCardInput = ({ ) : null} -
+ )} -
+
); }; diff --git a/app/javascript/components/ConfirmBalanceForfeitOnPayoutMethodChangeModal.tsx b/app/javascript/components/ConfirmBalanceForfeitOnPayoutMethodChangeModal.tsx index f0d4c8bbbb..2b2ccd57b2 100644 --- a/app/javascript/components/ConfirmBalanceForfeitOnPayoutMethodChangeModal.tsx +++ b/app/javascript/components/ConfirmBalanceForfeitOnPayoutMethodChangeModal.tsx @@ -2,6 +2,8 @@ import * as React from "react"; import { Button } from "$app/components/Button"; import { Modal } from "$app/components/Modal"; +import { Input } from "$app/components/ui/Input"; +import { Label } from "$app/components/ui/Label"; type Props = { balance: string | null; @@ -38,10 +40,10 @@ export const ConfirmBalanceForfeitOnPayoutMethodChangeModal = ({ balance, open, Please confirm that you're okay forfeiting your balance by typing "I understand" below and clicking{" "} Confirm.
-