From 9a09558f51dc0342b18715590fffa3e07be9cd57 Mon Sep 17 00:00:00 2001 From: Kanika Bansal Date: Thu, 30 Jan 2025 17:52:29 +0530 Subject: [PATCH] fix: ui-fixes --- public/hyperswitch/icons/solid.svg | 9 +++++++++ src/components/DatePicker.res | 2 +- src/components/LoadedTable.res | 2 +- src/components/PopUpConfirm.res | 2 +- .../AuthModule/TwoFaAuth/TotpRecoveryCodes.res | 2 +- src/entryPoints/SidebarValues.res | 10 ++++++---- .../ApplePay/ApplePayIntegrationHelper.res | 4 ++-- .../Connectors/PaymentProcessor/ConnectorPreview.res | 4 +--- .../Developer/APIKeys/PublishableAndHashKeySection.res | 2 ++ .../Developer/PaymentSettings/PaymentSettings.res | 5 ++--- src/screens/Helpers/HelperComponents.res | 4 ++-- src/screens/OMPSwitch/OMPSwitchHelper.res | 10 +++++----- src/screens/OMPSwitch/OrgSwitch.res | 2 +- src/screens/Routing/ActiveRouting.res | 1 + src/screens/Routing/CustomModal.res | 2 +- src/screens/RoutingRevamp/AdvancedRouting.res | 2 +- .../HSwitchSandboxOnboarding/UserOnboardingUIUtils.res | 2 +- .../HSwitchProfile/TwoFaSettings/RegenerateRC.res | 2 +- src/screens/Sidebar/OrgSidebar.res | 4 ++-- src/screens/Transaction/Order/HSwitchOrderUtils.res | 7 +++---- tailwind.config.js | 3 +++ 21 files changed, 47 insertions(+), 34 deletions(-) diff --git a/public/hyperswitch/icons/solid.svg b/public/hyperswitch/icons/solid.svg index 3be1077fc..9adff768d 100644 --- a/public/hyperswitch/icons/solid.svg +++ b/public/hyperswitch/icons/solid.svg @@ -9171,4 +9171,13 @@ License) stroke-linejoin="round" /> + + + + + + + + + diff --git a/src/components/DatePicker.res b/src/components/DatePicker.res index 24c74d182..2714b96fb 100644 --- a/src/components/DatePicker.res +++ b/src/components/DatePicker.res @@ -245,7 +245,7 @@ let make = ( calendarElement } else { -
+
calendarElement
}} diff --git a/src/components/LoadedTable.res b/src/components/LoadedTable.res index bc0ac31a0..bd7c91333 100644 --- a/src/components/LoadedTable.res +++ b/src/components/LoadedTable.res @@ -20,7 +20,7 @@ let checkBoxPropDefaultVal: checkBoxProps = { let sortAtom: Recoil.recoilAtom> = Recoil.atom("sortAtom", Dict.make()) -let backgroundClass = "bg-gray-50 dark:bg-jp-gray-darkgray_background" +let backgroundClass = "dark:bg-jp-gray-darkgray_background" let useSortedObj = (title: string, defaultSort) => { let (dict, setDict) = Recoil.useRecoilState(sortAtom) diff --git a/src/components/PopUpConfirm.res b/src/components/PopUpConfirm.res index d4fc214a3..819efdea3 100644 --- a/src/components/PopUpConfirm.res +++ b/src/components/PopUpConfirm.res @@ -128,7 +128,7 @@ let make = (
//
{
} diff --git a/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res b/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res index 562a3a100..292bb437d 100644 --- a/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res +++ b/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res @@ -61,6 +61,7 @@ let make = () => { displayValue={merchantInfo.publishable_key} customTextCss="break-all text-sm truncate md:whitespace-normal font-semibold text-jp-gray-800 text-opacity-75" customParentClass="flex items-center gap-5" + customIconCss="text-jp-gray-700" />
String.length !== 0}> @@ -72,6 +73,7 @@ let make = () => { displayValue={paymentResponsHashKey} customTextCss="break-all truncate md:whitespace-normal text-sm font-semibold text-jp-gray-800 text-opacity-75" customParentClass="flex items-center gap-5" + customIconCss="text-jp-gray-700" /> diff --git a/src/screens/Developer/PaymentSettings/PaymentSettings.res b/src/screens/Developer/PaymentSettings/PaymentSettings.res index d643c7397..4d8d66030 100644 --- a/src/screens/Developer/PaymentSettings/PaymentSettings.res +++ b/src/screens/Developer/PaymentSettings/PaymentSettings.res @@ -13,9 +13,8 @@ module InfoViewForWebhooks = {

{subHeading->React.string}

- copy-clipboard { onCopyClick(ev) diff --git a/src/screens/Helpers/HelperComponents.res b/src/screens/Helpers/HelperComponents.res index 63308a9ee..a1af37ff1 100644 --- a/src/screens/Helpers/HelperComponents.res +++ b/src/screens/Helpers/HelperComponents.res @@ -6,7 +6,7 @@ module CopyTextCustomComp = { ~customTextCss="", ~customParentClass="flex items-center", ~customOnCopyClick=() => (), - ~customIconColor="", + ~customIconCss="text-jp-gray-700 w-4 h-4", ) => { let showToast = ToastState.useShowToast() @@ -29,7 +29,7 @@ module CopyTextCustomComp = { onClick={ev => { onCopyClick(ev) }} - className={`${customIconColor}`} + className={`${customIconCss}`} />
} else { diff --git a/src/screens/OMPSwitch/OMPSwitchHelper.res b/src/screens/OMPSwitch/OMPSwitchHelper.res index 77fdc4420..3fe367942 100644 --- a/src/screens/OMPSwitch/OMPSwitchHelper.res +++ b/src/screens/OMPSwitch/OMPSwitchHelper.res @@ -348,7 +348,7 @@ module MerchantDropdownItem = { validateInput customInputStyle="!py-0 text-nd_gray-600" customIconComponent={} customIconStyle={isActive ? "text-nd_gray-600" : ""} handleClick={_ => handleMerchantSwitch(currentId)} @@ -464,7 +464,7 @@ module ProfileDropdownItem = { validateInput customInputStyle="!py-0 text-nd_gray-600" customIconComponent={} customIconStyle={isActive ? "text-nd_gray-600" : ""} handleClick={_ => handleProfileSwitch(currentId)} @@ -483,8 +483,8 @@ module ProfileDropdownItem = { let generateDropdownOptions: ( array, - ~customIconColor: string, -) => array = (dropdownList, ~customIconColor) => { + ~customIconCss: string, +) => array = (dropdownList, ~customIconCss) => { let options: array = dropdownList->Array.map(( item ): SelectBox.dropdownOption => { @@ -497,7 +497,7 @@ let generateDropdownOptions: ( customStyle="!whitespace-nowrap" toolTipFor={
} toolTipPosition=ToolTip.TopRight diff --git a/src/screens/OMPSwitch/OrgSwitch.res b/src/screens/OMPSwitch/OrgSwitch.res index 8e1027b2b..25b00a6a2 100644 --- a/src/screens/OMPSwitch/OrgSwitch.res +++ b/src/screens/OMPSwitch/OrgSwitch.res @@ -284,7 +284,7 @@ let make = () => { input deselectDisable=true customButtonStyle="!rounded-md" - options={orgList->generateDropdownOptions(~customIconColor="text-grey-200")} + options={orgList->generateDropdownOptions(~customIconCss="text-grey-200")} marginTop="mt-14" hideMultiSelectButtons=true addButton=false diff --git a/src/screens/Routing/ActiveRouting.res b/src/screens/Routing/ActiveRouting.res index 0024475a5..5e20616d6 100644 --- a/src/screens/Routing/ActiveRouting.res +++ b/src/screens/Routing/ActiveRouting.res @@ -35,6 +35,7 @@ module ActionButtons = { { diff --git a/src/screens/Routing/CustomModal.res b/src/screens/Routing/CustomModal.res index f37db2342..bc4fae9b8 100644 --- a/src/screens/Routing/CustomModal.res +++ b/src/screens/Routing/CustomModal.res @@ -13,7 +13,7 @@ module RoutingCustomModal = { + modalClass="w-full md:w-4/12 mx-auto my-auto border-t-8 border-t-orange-960 rounded-xl">
setShowModal(_ => false)} />
diff --git a/src/screens/RoutingRevamp/AdvancedRouting.res b/src/screens/RoutingRevamp/AdvancedRouting.res index 342dfc6fa..79bdbb069 100644 --- a/src/screens/RoutingRevamp/AdvancedRouting.res +++ b/src/screens/RoutingRevamp/AdvancedRouting.res @@ -269,7 +269,7 @@ module Wrapper = { className={`flex flex-row gap-2 items-center justify-around p-2 ${copyBtnHover ? "py-1" : ""} bg-gray-100 dark:bg-jp-gray-970 rounded-full border border-jp-gray-600 cursor-pointer`}> - +
{React.string("Copy Rule")}
diff --git a/src/screens/SelfServe/HSwitchSandboxOnboarding/UserOnboardingUIUtils.res b/src/screens/SelfServe/HSwitchSandboxOnboarding/UserOnboardingUIUtils.res index 692ba07de..8e6361b0f 100644 --- a/src/screens/SelfServe/HSwitchSandboxOnboarding/UserOnboardingUIUtils.res +++ b/src/screens/SelfServe/HSwitchSandboxOnboarding/UserOnboardingUIUtils.res @@ -176,7 +176,7 @@ module HeaderComponentView = { Clipboard.writeText(value) showToast(~message="Copied to Clipboard!", ~toastType=ToastSuccess) }}> - copy-to-clipboard +

{"Copy"->React.string}

diff --git a/src/screens/Settings/HSwitchProfile/TwoFaSettings/RegenerateRC.res b/src/screens/Settings/HSwitchProfile/TwoFaSettings/RegenerateRC.res index bcaf031cc..304f3d5cd 100644 --- a/src/screens/Settings/HSwitchProfile/TwoFaSettings/RegenerateRC.res +++ b/src/screens/Settings/HSwitchProfile/TwoFaSettings/RegenerateRC.res @@ -215,7 +215,7 @@ let make = (~checkTwoFaStatusResponse: TwoFaTypes.checkTwofaResponseType, ~check
- CopyToClipboard { onCopyClick(ev) }} diff --git a/tailwind.config.js b/tailwind.config.js index 164b18660..fa2f103d7 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -57,6 +57,9 @@ module.exports = { "923-px": "923px", onBordingSupplier: "calc(100vh - 300px)", }, + padding: { + "10-px": "10px", + }, maxHeight: { "25-rem": "25rem", },