From e29d80a9ec87ac824ebb16b15688a11c41884882 Mon Sep 17 00:00:00 2001 From: MananTank Date: Wed, 9 Oct 2024 18:06:20 +0000 Subject: [PATCH] Spacing adjustments on account-abstraction policies form (#4973) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## PR-Codex overview This PR focuses on enhancing the layout and readability of the `SponsorshipPolicies` component in the `AccountAbstractionSettingsPage` by adjusting the spacing in flex containers and modifying text formatting for better clarity. ### Detailed summary - Updated `div` elements to include `gap-6 lg:gap-12` for improved spacing. - Changed text formatting to use `
` for line breaks instead of plain text. - Made similar adjustments across multiple sections, including global spend limits and restrict to specific chains. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../SponsorshipPolicies/index.tsx | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/apps/dashboard/src/components/smart-wallets/SponsorshipPolicies/index.tsx b/apps/dashboard/src/components/smart-wallets/SponsorshipPolicies/index.tsx index 790ad366ecb..30922b03ccf 100644 --- a/apps/dashboard/src/components/smart-wallets/SponsorshipPolicies/index.tsx +++ b/apps/dashboard/src/components/smart-wallets/SponsorshipPolicies/index.tsx @@ -272,14 +272,14 @@ export function AccountAbstractionSettingsPage( > -
+
Global spend limits - Maximum gas cost (in USD) that you want to sponsor. This - applies for the duration of the billing period (monthly). Once - this limit is reached, your users will have to fund their own - gas costs. + Maximum gas cost (in USD) that you want to sponsor.
{" "} + This applies for the duration of the billing period (monthly). + Once this limit is reached, your users will have to fund their + own gas costs.
@@ -308,7 +308,7 @@ export function AccountAbstractionSettingsPage( } > Spend limit -
+
-
+
Restrict to specific chains - Only sponsor transactions on the specified chains. By default, - transactions can be sponsored on any of the{" "} + Only sponsor transactions on the specified chains.
By + default, transactions can be sponsored on any of the{" "} -
+
Restrict to specific contract addresses @@ -442,7 +442,7 @@ export function AccountAbstractionSettingsPage( -
+
Allowlisted/Blocklisted accounts @@ -519,13 +519,14 @@ export function AccountAbstractionSettingsPage( -
+
Server verifier Specify your own endpoint that will verify each transaction - and decide whether it should be sponsored or not. This gives - you fine grained control and lets you build your own rules.{" "} + and decide whether it should be sponsored or not.
This + gives you fine grained control and lets you build your own + rules.{" "} -
+
Admin accounts