diff --git a/src/components/Accordion.res b/src/components/Accordion.res index ad2d0d420..d5d1f00a7 100644 --- a/src/components/Accordion.res +++ b/src/components/Accordion.res @@ -27,9 +27,9 @@ module SectionAccordion = {
- +

{title->React.string}

-
+

{subtext->React.string} diff --git a/src/components/Button.res b/src/components/Button.res index bbd63883b..7a56e0d39 100644 --- a/src/components/Button.res +++ b/src/components/Button.res @@ -696,11 +696,11 @@ let make = ( }} {switch buttonRightText { | Some(text) => - LogicUtils.isEmptyString)}> + LogicUtils.isEmptyString)}> {React.string(text)} - + | None => React.null }} {switch rightIcon { diff --git a/src/components/Chip.res b/src/components/Chip.res index 20fcce272..c6b50b3b4 100644 --- a/src/components/Chip.res +++ b/src/components/Chip.res @@ -1,6 +1,5 @@ @react.component let make = (~values=[], ~showButton=false, ~onButtonClick=_ => (), ~converterFn=str => str) => { - open UIUtils Array.length !== 0}>

{values diff --git a/src/components/CollapsableTableRow.res b/src/components/CollapsableTableRow.res index ee4d5a4e8..967c9ef46 100644 --- a/src/components/CollapsableTableRow.res +++ b/src/components/CollapsableTableRow.res @@ -10,7 +10,6 @@ let make = ( ~heading, ~title, ) => { - open UIUtils let isCurrentRowExpanded = expandedRowIndexArray->Array.includes(rowIndex) let headingArray = [] diff --git a/src/components/CustomCharts/FunnelChart.res b/src/components/CustomCharts/FunnelChart.res index 0a7da99db..a33e17478 100644 --- a/src/components/CustomCharts/FunnelChart.res +++ b/src/components/CustomCharts/FunnelChart.res @@ -61,7 +61,7 @@ let make = (
| None => React.null }} - +
@@ -188,6 +188,6 @@ let make = (
-
+
} diff --git a/src/components/CustomCharts/HighchartTimeSeriesChart.res b/src/components/CustomCharts/HighchartTimeSeriesChart.res index d825666db..af5130b50 100644 --- a/src/components/CustomCharts/HighchartTimeSeriesChart.res +++ b/src/components/CustomCharts/HighchartTimeSeriesChart.res @@ -695,7 +695,7 @@ module LineChart1D = {
- +
{setHideLegend(prev => !prev)}}> @@ -705,7 +705,7 @@ module LineChart1D = { className="text-neutral-400" />
-
+ {if showTableLegend && !hideLegend {
{ - open UIUtils if showSerial { heading->Array.unshift(makeHeaderInfo(~key="serial_number", ~title="S.No", ()))->ignore } diff --git a/src/components/DesktopView.res b/src/components/DesktopView.res index 83c8f7336..b035e1dfe 100644 --- a/src/components/DesktopView.res +++ b/src/components/DesktopView.res @@ -2,5 +2,5 @@ let make = (~children) => { let isMobileView = MatchMedia.useMobileChecker() - children + children } diff --git a/src/components/DynamicChart.res b/src/components/DynamicChart.res index 297e52863..b6cbeffbf 100644 --- a/src/components/DynamicChart.res +++ b/src/components/DynamicChart.res @@ -821,7 +821,7 @@ let make = ( } else if comparitionWidget {
- +
-
+ {entityAllMetrics ->Array.mapWithIndex((selectedMetrics, index) => { switch uriConfig->Array.get(0) { diff --git a/src/components/DynamicSingleStat.res b/src/components/DynamicSingleStat.res index 4955b09ea..242d380f7 100644 --- a/src/components/DynamicSingleStat.res +++ b/src/components/DynamicSingleStat.res @@ -141,7 +141,6 @@ let make = ( ~wrapperClass=?, ~formaPayload: option string>=?, ) => { - open UIUtils open LogicUtils let {filterValueJson} = React.useContext(FilterContext.filterContext) let fetchApi = AuthHooks.useApiFetcher() diff --git a/src/components/DynamicTable.res b/src/components/DynamicTable.res index 38d192ef9..ca83a532f 100644 --- a/src/components/DynamicTable.res +++ b/src/components/DynamicTable.res @@ -338,7 +338,7 @@ let make = ( } else { React.null }} - + - +
if isFiltersInPortal { {children} diff --git a/src/components/DynamicTableUtils.res b/src/components/DynamicTableUtils.res index 5584b8e17..fd7bd0935 100644 --- a/src/components/DynamicTableUtils.res +++ b/src/components/DynamicTableUtils.res @@ -227,9 +227,9 @@ module TableLoadingErrorIndicator = { }
- + - +
{filters}
diff --git a/src/components/DynamicTabs.res b/src/components/DynamicTabs.res index c89519efb..e4828413c 100644 --- a/src/components/DynamicTabs.res +++ b/src/components/DynamicTabs.res @@ -76,7 +76,7 @@ module TabInfo = { let borderClass = "" let lineStyle = "bg-black w-full h-0.5 rounded-full" - open UIUtils + let crossIcon = switch isRemovable { | true => >, ~isVisible) => { - open UIUtils let isMobileView = MatchMedia.useMobileChecker() let onClick = { _ev => @@ -526,11 +525,11 @@ let make = (
- + - +
ReactDOM.Ref.domRef} @@ -578,15 +577,15 @@ let make = (
- + - - Array.length > 0}> + + Array.length > 0}>
@@ -604,7 +603,7 @@ let make = ( tooltipWidthClass="w-fit" />
-
+
Array.length > 0 }, (formState.initialValues, defaultFilterKeys)) let text = "Clear All" - +
} @@ -372,15 +371,15 @@ let make = (
} - +
- 0}> + 0}> 0} /> - +
} diff --git a/src/components/FilterSelectBox.res b/src/components/FilterSelectBox.res index c6a98e4c3..64bd01987 100644 --- a/src/components/FilterSelectBox.res +++ b/src/components/FilterSelectBox.res @@ -700,7 +700,7 @@ module BaseSelect = { {if showSelectAll && isDropDown { if !isMobileView { let clearAllCondition = noOfSelected > 0 - Array.length > 1 && filteredOptions->Array.find(item => item.value === "Loading...")->Option.isNone}>
{{clearAllCondition ? "Clear All" : "Select All"}->React.string}
-
+ } else {
Array.length)} @@ -1101,14 +1101,14 @@ module RenderListItemInBaseRadio = { | Some(str) =>
Int.toString} className="flex flex-row"> listItemComponent - +
} /> - +
| None => listItemComponent } @@ -1331,11 +1331,11 @@ module BaseRadio = { ? "animate-textTransition transition duration-400" : "animate-textTransitionOff transition duration-400"}`}> {switch searchable { - | Some(val) => searchInputUI + | Some(val) => searchInputUI | None => - Array.length > 5 || addDynamicValue)}> + Array.length > 5 || addDynamicValue)}> searchInputUI - + }}
React.string}
{buttonIcon} - +
{badgeForSelect.value->React.string}
-
+
- +
-
+
{title->React.string} @@ -220,9 +220,9 @@ let make = (
}) ->React.array} - Array.length > 5}> + Array.length > 5}> - + } else {
- +
-
+
{statValue(statType)->String.toLowerCase->React.string} diff --git a/src/components/HeadlessUISelectBox.res b/src/components/HeadlessUISelectBox.res index c9e022589..ae71801ac 100644 --- a/src/components/HeadlessUISelectBox.res +++ b/src/components/HeadlessUISelectBox.res @@ -120,13 +120,13 @@ let make = ( | _ => React.null }}
- + {if isCloseIcon { } else { }} - +
}} diff --git a/src/components/LoadedTable.res b/src/components/LoadedTable.res index ab0d931ec..a7e8e939a 100644 --- a/src/components/LoadedTable.res +++ b/src/components/LoadedTable.res @@ -890,9 +890,9 @@ let make = ( | Some(x) => {x} | None => - Array.length > 0}> + Array.length > 0}> - + }} {switch tableActions { @@ -934,21 +934,20 @@ let make = ( hideTitle ? "" : ` mt-4 mb-2` )}>
- + + rightActions={ {tableActionElements} - } + } /> - +
- +
-
+
@@ -981,9 +980,9 @@ let make = (
- + {tableActionElements} - + customizeColumsButtons
@@ -992,9 +991,9 @@ let make = ( } else { loadedTableUI }} - + Array.length !== 0} /> - +
Option.isSome && isMobileView ? `flex flex-row-reverse justify-between mb-10 ${tableDataBackgroundClass}` diff --git a/src/components/LoadedTableWithCustomColumns.res b/src/components/LoadedTableWithCustomColumns.res index 782878dc2..1496190fd 100644 --- a/src/components/LoadedTableWithCustomColumns.res +++ b/src/components/LoadedTableWithCustomColumns.res @@ -87,7 +87,7 @@ let make = (
let customizeColumn = - +
- + {headRightElement} - - + +
@@ -187,7 +187,7 @@ module Details = { }}
-
+ {switch children { | Some(ele) => ele | None => React.null diff --git a/src/components/Paginator.res b/src/components/Paginator.res index 2deecc27a..7a3e20e7e 100644 --- a/src/components/Paginator.res +++ b/src/components/Paginator.res @@ -70,7 +70,7 @@ let make = ( if totalResults >= resultsPerPage {
- +
{React.string( @@ -88,7 +88,7 @@ let make = ( baseComponent={} />
-
+ {switch downloadCsv { | Some(actionData) =>
diff --git a/src/components/PopUpConfirm.res b/src/components/PopUpConfirm.res index 2c6c62649..b77056d75 100644 --- a/src/components/PopUpConfirm.res +++ b/src/components/PopUpConfirm.res @@ -136,7 +136,7 @@ let make = (
- + {switch popUpType { | Warning => warning @@ -147,7 +147,7 @@ let make = ( | Secondary => | Denied => }} - +
{confirmType->React.string}
@@ -158,9 +158,9 @@ let make = (
- + - +
diff --git a/src/components/ReactWindowTable.res b/src/components/ReactWindowTable.res index 822f0dc83..de9bc747a 100644 --- a/src/components/ReactWindowTable.res +++ b/src/components/ReactWindowTable.res @@ -365,16 +365,16 @@ module ReactWindowTableComponent = {
{React.string(item.title)}
- Option.isSome}> + Option.isSome}>
Option.getOr("")} toolTipPosition={ToolTip.Bottom} />
-
+
- Option.getOr(false)}> + Option.getOr(false)}>
-
- Option.isSome}> + + Option.isSome}>
{React.string(item.data->Option.getOr(""))}
-
+
{if item.showFilter || item.showSort {
diff --git a/src/components/SelectBox.res b/src/components/SelectBox.res index b13428139..af547c619 100644 --- a/src/components/SelectBox.res +++ b/src/components/SelectBox.res @@ -731,7 +731,7 @@ module BaseSelect = {
} else if !isMobileView { let clearAllCondition = noOfSelected > 0 - Array.length > 1 && filteredOptions->Array.find(item => item.value === "Loading...")->Option.isNone}>
{{clearAllCondition ? "Clear All" : "Select All"}->React.string}
-
+ } else {
Array.length)} @@ -895,7 +895,7 @@ module BaseSelect = { onClick /> } else { - 0 && showSelectCountButton}> + 0 && showSelectCountButton}>
} @@ -1140,14 +1140,14 @@ module RenderListItemInBaseRadio = { | Some(str) =>
Int.toString} className="flex flex-row"> listItemComponent - +
} /> - +
| None => listItemComponent } @@ -1370,11 +1370,11 @@ module BaseRadio = { ? "animate-textTransition transition duration-400" : "animate-textTransitionOff transition duration-400"}`}> {switch searchable { - | Some(val) => searchInputUI + | Some(val) => searchInputUI | None => - Array.length > 5 || addDynamicValue)}> + Array.length > 5 || addDynamicValue)}> searchInputUI - + }}
diff --git a/src/components/Table.res b/src/components/Table.res index 84f13b289..b8d07c29e 100644 --- a/src/components/Table.res +++ b/src/components/Table.res @@ -418,7 +418,7 @@ module TableHeadingCell = { : justifyClass}`}>
- Option.getOr(false)}> + Option.getOr(false)}>
-
+
{switch item.headerElement { | Some(headerElement) => headerElement | _ =>
{React.string(item.title)}
}} - Option.isSome}> + Option.isSome}> Option.getOr(""))]>
Option.getOr("")})`)}
-
+ {if item.showFilter || item.showSort || filterRow->Option.isSome { let selfClass = "self-end"
@@ -507,10 +507,10 @@ module TableHeadingCell = { React.null }}
- Option.getOr(false)}> + Option.getOr(false)}>
{React.string("*")}
-
- + Option.getOr("")->LogicUtils.isNonEmptyString}>
-
+
@@ -837,9 +837,9 @@ let make = ( let frozenTable = { - + {renderTableHeadingRow(frozenHeading, true, false, lastHeadingClass)} - + {tableFilterRow(~isFrozen=true)} {tableRows(frozenRow, false)} @@ -851,14 +851,14 @@ let make = ( let customizeColumn = {
- + {renderTableHeadingRow( frozenCustomiseColumnHeading, true, true, `${lastHeadingClass} rounded-tl-none rounded-tr-lg`, )} - + {tableRows( Array.fromInitializer(~length=totalLength, i => i + 1)->Array.map(_ => [Text("")]), @@ -877,9 +877,9 @@ let make = ( let nonFrozenTable = {
- + {renderTableHeadingRow(remainingHeading, false, false, `${lastHeadingClass}`)} - + {tableFilterRow(~isFrozen=false)} {tableRows(remaingRow, false)} @@ -912,15 +912,15 @@ let make = ( (), )} //replaced "overflow-auto" -> to be tested with master > - 0}> {frozenTable} + 0}> {frozenTable}
nonFrozenTable
{switch customizeColumnNewTheme { | Some(customizeColumnObj) => - + {customizeColumn} - + | None => React.null }} diff --git a/src/components/TableLocalFilters.res b/src/components/TableLocalFilters.res index 7090a9ff2..2d57f0f3c 100644 --- a/src/components/TableLocalFilters.res +++ b/src/components/TableLocalFilters.res @@ -69,7 +69,7 @@ module RangeSliderLocalFilter = { onClick={_ => setShowDropDown(prev => !prev)}> {rightIcon} - +
ReactDOM.Ref.domRef} className=" top-3.5 px-4 pt-4 pb-2 bg-white border dark:bg-jp-gray-lightgray_background border-jp-gray-lightmode_steelgray border-opacity-75 dark:border-jp-gray-960 rounded shadow-generic_shadow dark:shadow-generic_shadow_dark mt-8 absolute border border-jp-gray-lightmode_steelgray border-opacity-75 dark:border-jp-gray-960 rounded shadow-generic_shadow dark:shadow-generic_shadow_dark z-20 "> @@ -77,7 +77,7 @@ module RangeSliderLocalFilter = {
-
+ } diff --git a/src/components/TableUtils.res b/src/components/TableUtils.res index 451d02b9c..3a3468b43 100644 --- a/src/components/TableUtils.res +++ b/src/components/TableUtils.res @@ -645,13 +645,13 @@ module DeltaColumn = { {React.string(Float.toFixedWithPrecision(value, ~digits=2) ++ "%")}

- +

{React.string(detlaStr)}

-
+ } diff --git a/src/components/Tabs.res b/src/components/Tabs.res index d2aace15e..9bcac97c9 100644 --- a/src/components/Tabs.res +++ b/src/components/Tabs.res @@ -260,9 +260,9 @@ let make = ( - +
- +
{switch tabs->Array.get(selectedIndex) { diff --git a/src/components/form/FormRenderer.res b/src/components/form/FormRenderer.res index 2a4eaddfe..04faa4922 100644 --- a/src/components/form/FormRenderer.res +++ b/src/components/form/FormRenderer.res @@ -217,23 +217,23 @@ module FieldWrapper = {
{<>
- + - + {switch description { | Some(description) => - LogicUtils.isNonEmptyString}> + LogicUtils.isNonEmptyString}>
-
+ | None => React.null }} {switch descriptionComponent { diff --git a/src/components/form/PasswordStrengthInputAsChips.res b/src/components/form/PasswordStrengthInputAsChips.res index fe6ccd36c..d1a45132e 100644 --- a/src/components/form/PasswordStrengthInputAsChips.res +++ b/src/components/form/PasswordStrengthInputAsChips.res @@ -25,9 +25,9 @@ module PasswordChip = { let textClass = isCheckPassed ? "text-green-700 font-medium" : "font-base dark:text-gray-100"

- + - + {React.string(checkName)}

} diff --git a/src/components/priority-logics/AddPLGateway.res b/src/components/priority-logics/AddPLGateway.res index 0e81a6c53..e7c70194a 100644 --- a/src/components/priority-logics/AddPLGateway.res +++ b/src/components/priority-logics/AddPLGateway.res @@ -13,11 +13,11 @@ module GatewayView = { ${textColor.primaryNormal} hover:${textColor.primaryNormal} bg-gradient-to-b from-jp-gray-250 to-jp-gray-200 dark:from-jp-gray-950 dark:to-jp-gray-950 focus:outline-none px-2 gap-1`}> {React.string(ruleGateway.connector.connector)} - + {React.string(ruleGateway.split->Int.toString ++ "%")} - +
}) ->React.array} @@ -137,9 +137,9 @@ let make = ( if isExpanded {
- +
- +
@@ -181,7 +181,7 @@ let make = ( removeItem(i) }} /> - Array.length > 0}> + Array.length > 0}> {<>
{React.string("%")}
} -
+
} diff --git a/src/components/tooltip/ToolTip.res b/src/components/tooltip/ToolTip.res index 67cb0e47a..a16b700ee 100644 --- a/src/components/tooltip/ToolTip.res +++ b/src/components/tooltip/ToolTip.res @@ -281,7 +281,7 @@ module DescriptionSection = { }) ->React.array}
- + setIsToolTipVisible(prev => !prev)} /> - + {descriptionComponent}
diff --git a/src/entryPoints/AcceptInviteHome.res b/src/entryPoints/AcceptInviteHome.res index 8d7063487..fb7870f0a 100644 --- a/src/entryPoints/AcceptInviteHome.res +++ b/src/entryPoints/AcceptInviteHome.res @@ -1,7 +1,7 @@ @react.component let make = () => { open APIUtils - open UIUtils + let updateDetails = useUpdateMethod() let showToast = ToastState.useShowToast() let fetchSwitchMerchantList = SwitchMerchantListHook.useFetchSwitchMerchantList() diff --git a/src/entryPoints/AuthModule/AuthModuleHooks.res b/src/entryPoints/AuthModule/AuthModuleHooks.res index eed344da8..bc18eacd1 100644 --- a/src/entryPoints/AuthModule/AuthModuleHooks.res +++ b/src/entryPoints/AuthModule/AuthModuleHooks.res @@ -131,7 +131,6 @@ let useAuthMethods = (): authMethodProps => { } let useNote = (authType, setAuthType, ()) => { - open UIUtils open CommonAuthTypes let {globalUIConfig: {font: {textColor}}} = React.useContext(ThemeProvider.themeContext) let authId = HyperSwitchEntryUtils.getSessionData(~key="auth_id", ()) diff --git a/src/entryPoints/AuthModule/AuthWrapper.res b/src/entryPoints/AuthModule/AuthWrapper.res index c2ba4fe65..30e2aeabd 100644 --- a/src/entryPoints/AuthModule/AuthWrapper.res +++ b/src/entryPoints/AuthModule/AuthWrapper.res @@ -25,17 +25,17 @@ module AuthHeaderWrapper = {
{children}
- +
-
+
- + - +
} @@ -160,13 +160,13 @@ let make = (~children) => { | LoggedOut => - + - - - + + + {PreLoginUtils.divider} - + {authMethods ->Array.mapWithIndex((authMethod, index) => Int.toString}> @@ -174,7 +174,7 @@ let make = (~children) => { ) ->React.array} - + | PreLogin(_) => diff --git a/src/entryPoints/AuthModule/BasicAuth/BasicAuth.res b/src/entryPoints/AuthModule/BasicAuth/BasicAuth.res index 19024fd92..f9e2d048b 100644 --- a/src/entryPoints/AuthModule/BasicAuth/BasicAuth.res +++ b/src/entryPoints/AuthModule/BasicAuth/BasicAuth.res @@ -237,9 +237,9 @@ let make = (~authType, ~setAuthType) => { {switch authType { | LoginWithPassword => | ForgetPassword => - + - + | LoginWithEmail | ResendVerifyEmail | SignUP => diff --git a/src/entryPoints/AuthModule/BasicAuth/BasicAuthScreen.res b/src/entryPoints/AuthModule/BasicAuth/BasicAuthScreen.res index 6b2a67e1b..b7b3d6178 100644 --- a/src/entryPoints/AuthModule/BasicAuth/BasicAuthScreen.res +++ b/src/entryPoints/AuthModule/BasicAuth/BasicAuthScreen.res @@ -16,9 +16,9 @@ module BasicAuthPage = {
- + - +
@@ -30,17 +30,17 @@ module BasicAuthPage = {
- +
-
+
- + - +
- +
{switch authType { | MagicLinkEmailSent | ForgetPasswordEmailSent | ResendVerifyEmailSent => @@ -110,20 +110,20 @@ module Header = { | _ => React.null }}
-
+

{cardHeaderText->React.string}

{switch authType { | LoginWithPassword | LoginWithEmail => - + {getHeaderLink( ~prefix="New to Hyperswitch?", ~authType=SignUP, ~path="/register", ~sufix="Sign up", )} - + | SignUP => getHeaderLink( diff --git a/src/entryPoints/AuthModule/Common/CommonAuthForm.res b/src/entryPoints/AuthModule/Common/CommonAuthForm.res index 7f08a0346..3328b1503 100644 --- a/src/entryPoints/AuthModule/Common/CommonAuthForm.res +++ b/src/entryPoints/AuthModule/Common/CommonAuthForm.res @@ -11,7 +11,7 @@ module EmailPasswordForm = {
- + - +
} diff --git a/src/entryPoints/AuthModule/Common/CommonAuthHooks.res b/src/entryPoints/AuthModule/Common/CommonAuthHooks.res index fd4c375c3..903593082 100644 --- a/src/entryPoints/AuthModule/Common/CommonAuthHooks.res +++ b/src/entryPoints/AuthModule/Common/CommonAuthHooks.res @@ -1,5 +1,4 @@ let useNote = (authType, setAuthType, isMagicLinkEnabled) => { - open UIUtils open CommonAuthTypes let {globalUIConfig: {font: {textColor}}} = React.useContext(ThemeProvider.themeContext) let authId = HyperSwitchEntryUtils.getSessionData(~key="auth_id", ()) diff --git a/src/entryPoints/AuthModule/Common/CommonInviteScreen.res b/src/entryPoints/AuthModule/Common/CommonInviteScreen.res index d490d3932..0e0c4fe67 100644 --- a/src/entryPoints/AuthModule/Common/CommonInviteScreen.res +++ b/src/entryPoints/AuthModule/Common/CommonInviteScreen.res @@ -50,20 +50,20 @@ let make = (~merchantData, ~acceptInviteOnClick, ~onClickLoginToDashboard) => {
- +
}) ->React.array} diff --git a/src/entryPoints/AuthModule/Common/ResendBtn.res b/src/entryPoints/AuthModule/Common/ResendBtn.res index 10ad09cfb..afbc24cca 100644 --- a/src/entryPoints/AuthModule/Common/ResendBtn.res +++ b/src/entryPoints/AuthModule/Common/ResendBtn.res @@ -32,10 +32,10 @@ let make = (~callBackFun) => { }}> {"Send again."->React.string} - +
{`(${mod(seconds, 60)->Int.toString}sec)`->React.string}
-
+
} diff --git a/src/entryPoints/AuthModule/PreLoginModule/AuthSelect.res b/src/entryPoints/AuthModule/PreLoginModule/AuthSelect.res index 5db0cc3c2..5fe4d5b97 100644 --- a/src/entryPoints/AuthModule/PreLoginModule/AuthSelect.res +++ b/src/entryPoints/AuthModule/PreLoginModule/AuthSelect.res @@ -86,9 +86,9 @@ let make = (~setSelectedAuthId) => { ->Array.mapWithIndex((authMethod, index) => Int.toString}> {authMethod->renderComponentForAuthTypes} - Array.length !== 2}> + Array.length !== 2}> {PreLoginUtils.divider} - + ) ->React.array} diff --git a/src/entryPoints/AuthModule/TwoFaAuth/TotpSetup.res b/src/entryPoints/AuthModule/TwoFaAuth/TotpSetup.res index a70240aa0..de332167a 100644 --- a/src/entryPoints/AuthModule/TwoFaAuth/TotpSetup.res +++ b/src/entryPoints/AuthModule/TwoFaAuth/TotpSetup.res @@ -181,12 +181,12 @@ module ConfigureTotpScreen = {

{modalHeaderText->React.string}

- + - +
- +

{"Didn't get a code? "->React.string} React.string}

-
+
| None => { - let arr = queryUrl->decodeURI->String.split("&")->Array.map(e => e->String.split("=")) - let safeArray = arr->Array.filter(e => e->Array.length == 2) - let dict: Dict.t = Dict.make() - safeArray->Array.forEach(e => { - dict->Dict.set(e->Array.get(0)->Option.getOr(""), e->Array.get(1)->Option.getOr("")) - }) - - dict -} -type queryInput = String(string, string) | Array(string, array) diff --git a/src/screens/Analytics/Analytics.res b/src/screens/Analytics/Analytics.res index ba2a3cf7e..a9cbdbc59 100644 --- a/src/screens/Analytics/Analytics.res +++ b/src/screens/Analytics/Analytics.res @@ -354,13 +354,13 @@ module TableWrapper = { />
- Array.length > 0}> + Array.length > 0}>
{"'NA' denotes those incomplete or failed payments with no assigned values for the corresponding parameters due to reasons like customer drop-offs, technical failures, etc."->React.string}
-
+ : } @@ -676,18 +676,18 @@ let make = ( } - Dict.toArray->Array.length > 0}> + Dict.toArray->Array.length > 0}> {switch chartEntity1 { | Some(chartEntity) =>
- + {switch generateReportType { | Some(entityName) => | None => React.null }} - +
topFilterUi
@@ -865,5 +865,5 @@ let make = (
| _ => React.null }} - + } diff --git a/src/screens/Analytics/AnalyticsNew.res b/src/screens/Analytics/AnalyticsNew.res index 440dc7fef..a42a0dd5e 100644 --- a/src/screens/Analytics/AnalyticsNew.res +++ b/src/screens/Analytics/AnalyticsNew.res @@ -303,13 +303,13 @@ module TableWrapper = { />
- Array.length > 0}> + Array.length > 0}>
{"'NA' denotes those incomplete or failed payments with no assigned values for the corresponding parameters due to reasons like customer drop-offs, technical failures, etc."->React.string}
-
+
: } diff --git a/src/screens/Analytics/GlobalSearch/GlobalSearchBar.res b/src/screens/Analytics/GlobalSearch/GlobalSearchBar.res index 8f060710b..7fc5dccf8 100644 --- a/src/screens/Analytics/GlobalSearch/GlobalSearchBar.res +++ b/src/screens/Analytics/GlobalSearch/GlobalSearchBar.res @@ -122,7 +122,7 @@ module ModalWrapper = { module SearchResultsComponent = { open GlobalSearchTypes open LogicUtils - open UIUtils + @react.component let make = (~searchResults, ~searchText, ~redirectOnSelect, ~setShowModal) => { React.useEffect(() => { @@ -203,7 +203,7 @@ let make = () => { open GlobalSearchBarUtils open HeadlessUI open LogicUtils - open UIUtils + let getURL = APIUtils.useGetURL() let prefix = useUrlPrefix() let setGLobalSearchResults = HyperswitchAtom.globalSeacrchAtom->Recoil.useSetRecoilState diff --git a/src/screens/Analytics/GlobalSearch/GlobalSearchBarUtils.res b/src/screens/Analytics/GlobalSearch/GlobalSearchBarUtils.res index 1c4b2d5f0..4429eceb7 100644 --- a/src/screens/Analytics/GlobalSearch/GlobalSearchBarUtils.res +++ b/src/screens/Analytics/GlobalSearch/GlobalSearchBarUtils.res @@ -7,7 +7,7 @@ module ShowMoreLink = { ~textStyleClass="", ~searchText, ) => { - 10}> + 10}> { let linkText = `View ${section.total_results->Int.toString} result${section.total_results > 1 ? "s" @@ -33,7 +33,7 @@ module ShowMoreLink = { } } - + } } diff --git a/src/screens/Analytics/GlobalSearchResults/SearchResultsPage.res b/src/screens/Analytics/GlobalSearchResults/SearchResultsPage.res index b6de1c9b4..fdfbb1f25 100644 --- a/src/screens/Analytics/GlobalSearchResults/SearchResultsPage.res +++ b/src/screens/Analytics/GlobalSearchResults/SearchResultsPage.res @@ -1,7 +1,7 @@ module RenderSearchResultBody = { open GlobalSearchTypes open LogicUtils - open UIUtils + @react.component let make = (~section: resultType) => { let redirectOnSelect = element => { diff --git a/src/screens/Analytics/HomePageOverview/HomePageOverviewComponent.res b/src/screens/Analytics/HomePageOverview/HomePageOverviewComponent.res index e328356b6..db59d0c59 100644 --- a/src/screens/Analytics/HomePageOverview/HomePageOverviewComponent.res +++ b/src/screens/Analytics/HomePageOverview/HomePageOverviewComponent.res @@ -42,7 +42,7 @@ module ConnectorOverview = {
{icons->React.array}
} - Array.length > 0}> + Array.length > 0}>
{getConnectorIconsList()}
@@ -61,7 +61,7 @@ module ConnectorOverview = { }} />
- + } } @@ -169,7 +169,7 @@ module OverviewInfo = { } } - +
@@ -182,7 +182,7 @@ module OverviewInfo = { {"sample data"->React.string}
-
+ } } @@ -194,12 +194,12 @@ let make = () => {

{"Overview"->React.string}

- + - - + + - +
diff --git a/src/screens/Analytics/Logs/LogUtils/ApiDetailsComponent.res b/src/screens/Analytics/Logs/LogUtils/ApiDetailsComponent.res index b8337d4fd..1a3f3bee2 100644 --- a/src/screens/Analytics/Logs/LogUtils/ApiDetailsComponent.res +++ b/src/screens/Analytics/Logs/LogUtils/ApiDetailsComponent.res @@ -180,11 +180,11 @@ let make = (
- +
- +
- isNonEmptyString && selectedOption.optionType !== WEBHOOKS}>
@@ -77,31 +77,31 @@ module TabDetails = { />
-
- + isEmptyString && selectedOption.optionType !== WEBHOOKS}> - +
| Metadata | Response =>
- isNonEmptyString}> + isNonEmptyString}>
Some} customTextCss="text-nowrap" />
-
- isEmptyString}> + + isEmptyString}> - +
| _ => React.null }} @@ -248,7 +248,7 @@ let make = (~id, ~urls, ~logType: LogTypes.pageType) => {
let codeBlock = - isNonEmptyString || logDetails.request->isNonEmptyString}>
@@ -265,7 +265,7 @@ let make = (~id, ~urls, ~logType: LogTypes.pageType) => {
- + open OrderUtils { message={`No logs available for this ${(logType :> string)->String.toLowerCase}`} />}> {<> - HSwitchOrderUtils.isTestData || data->Array.length === 0}> + HSwitchOrderUtils.isTestData || data->Array.length === 0}>
@@ -285,14 +285,14 @@ let make = (~id, ~urls, ~logType: LogTypes.pageType) => { {`No logs available for this ${(logType :> string)->String.toLowerCase}`->React.string}
- - HSwitchOrderUtils.isTestData || data->Array.length === 0)}> + + HSwitchOrderUtils.isTestData || data->Array.length === 0)}>
{timeLine} {codeBlock}
-
+ } } diff --git a/src/screens/Analytics/Logs/LogUtils/LogsWrapper.res b/src/screens/Analytics/Logs/LogUtils/LogsWrapper.res index 6af4de7d4..55cadf278 100644 --- a/src/screens/Analytics/Logs/LogUtils/LogsWrapper.res +++ b/src/screens/Analytics/Logs/LogUtils/LogsWrapper.res @@ -20,9 +20,9 @@ let make = (~wrapperFor, ~children) => { let isSmallDevice = MatchMedia.useMatchMedia("(max-width: 700px)")
- + - - {children} + + {children}
} diff --git a/src/screens/Analytics/Logs/LogUtils/PrettyPrintJson.res b/src/screens/Analytics/Logs/LogUtils/PrettyPrintJson.res index 0045349ab..d65660ebe 100644 --- a/src/screens/Analytics/Logs/LogUtils/PrettyPrintJson.res +++ b/src/screens/Analytics/Logs/LogUtils/PrettyPrintJson.res @@ -32,16 +32,16 @@ let make = (
- isNonEmptyString}> + isNonEmptyString}> {<> - Option.isSome}> + Option.isSome}>

{headerText->Option.getOr("")->React.string}

{copyParsedJson}
-
+
} -
- isEmptyString}> + + isEmptyString}>

{headerText->Option.getOr("")->React.string} @@ -72,6 +72,6 @@ let make = ( {"Failed to load!"->React.string}

-
+
} diff --git a/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res b/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res index 92fcf8c9a..43286c74c 100644 --- a/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res +++ b/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res @@ -232,9 +232,9 @@ let make = () => {
- + - +
diff --git a/src/screens/Analytics/SystemMetrics/SystemMetricsAnalytics.res b/src/screens/Analytics/SystemMetrics/SystemMetricsAnalytics.res index d0b82d323..8780da2b4 100644 --- a/src/screens/Analytics/SystemMetrics/SystemMetricsAnalytics.res +++ b/src/screens/Analytics/SystemMetrics/SystemMetricsAnalytics.res @@ -286,7 +286,7 @@ module SystemMetricsAnalytics = { }, (startTimeVal, endTimeVal, filterBody->JSON.Encode.object->JSON.stringify)) let filterData = filterDataJson->Option.getOr(Dict.make()->JSON.Encode.object) - Dict.toArray->Array.length > 0}> + Dict.toArray->Array.length > 0}> {switch chartEntity1 { | Some(chartEntity) =>
@@ -320,7 +320,7 @@ module SystemMetricsAnalytics = {
| _ => React.null }} -
+ } } diff --git a/src/screens/ConfigurePMTs/PaymentMethodConfig.res b/src/screens/ConfigurePMTs/PaymentMethodConfig.res index c6b6e3bf2..24f20ef2e 100644 --- a/src/screens/ConfigurePMTs/PaymentMethodConfig.res +++ b/src/screens/ConfigurePMTs/PaymentMethodConfig.res @@ -154,7 +154,7 @@ let make = ( let id = `payment_methods_enabled[${payment_method_index->Int.toString}].payment_method_types[${payment_method_types_index->Int.toString}]` <> - + - + { - open UIUtils let errorPageDetails = setupAccountStatus->PayPalFlowUtils.getPageDetailsForAutomatic
diff --git a/src/screens/Connectors/ConnectPayPalFlow/MenuOptionForPayPal.res b/src/screens/Connectors/ConnectPayPalFlow/MenuOptionForPayPal.res index 1cc2b5f52..314e6806e 100644 --- a/src/screens/Connectors/ConnectPayPalFlow/MenuOptionForPayPal.res +++ b/src/screens/Connectors/ConnectPayPalFlow/MenuOptionForPayPal.res @@ -11,7 +11,7 @@ let make = ( ~setInitialValues, ) => { open HeadlessUI - open UIUtils + let showPopUp = PopUpState.useShowPopUp() let showToast = ToastState.useShowToast() let deleteTrackingDetails = PayPalFlowUtils.useDeleteTrackingDetails() diff --git a/src/screens/Connectors/ConnectorAccountDetailsHelper.res b/src/screens/Connectors/ConnectorAccountDetailsHelper.res index 4dc2d3adb..2f17af8cd 100644 --- a/src/screens/Connectors/ConnectorAccountDetailsHelper.res +++ b/src/screens/Connectors/ConnectorAccountDetailsHelper.res @@ -85,7 +85,7 @@ module ErrorValidation = { let errorDict = formState.values->validate->getDictFromJsonObject let {touched} = ReactFinalForm.useField(fieldName).meta let err = touched ? errorDict->Dict.get(fieldName) : None - Option.isSome}> + Option.isSome}>
@@ -93,7 +93,7 @@ module ErrorValidation = {
{React.string(err->Option.getOr(""->JSON.Encode.string)->getStringFromJson(""))}
-
+ } } @@ -122,7 +122,7 @@ module RenderConnectorInputFields = { let label = details->getString(field, "") let formName = isLabelNested ? `${name}.${field}` : name - isNonEmptyString} key={i->Int.toString}> + isNonEmptyString} key={i->Int.toString}> titleToSnake->String.toLowerCase)]>
-
+ }) ->React.array } @@ -390,7 +390,7 @@ module BusinessProfileRender = { (), )} /> - +
{"Manage your list of profiles."->React.string}
-
+ } @@ -453,9 +453,7 @@ module VerifyConnectorModal = { className="whitespace-pre-line break-all flex flex-col gap-1 p-4 ml-6 text-base dark:text-jp-gray-text_darktheme dark:text-opacity-50 bg-red-100 rounded-md font-semibold"> {`${verifyErrorMessage->Option.getOr("")}`->React.string}
- - {suggestedAction} - + {suggestedAction}
@@ -505,7 +503,7 @@ module ConnectorHeaderWrapper = {
- Array.includes(connectorNameFromType) && conditionForIntegrationSteps}> - + {headerButton}
- true | _ => false @@ -536,7 +534,7 @@ module ConnectorHeaderWrapper = { - +
{children} } diff --git a/src/screens/Connectors/ConnectorHome.res b/src/screens/Connectors/ConnectorHome.res index bfd471fca..a92c460cb 100644 --- a/src/screens/Connectors/ConnectorHome.res +++ b/src/screens/Connectors/ConnectorHome.res @@ -37,9 +37,9 @@ module ConnectorCurrentStepIndicator = {

{(i + 1)->Int.toString->React.string}

}} - Array.length - 1}> + Array.length - 1}>
- +
{step->ConnectorUtils.getStepName->React.string} @@ -216,7 +216,7 @@ let make = (~isPayoutFlow=false, ~showStepIndicator=true, ~showBreadCrumb=true)
- + ConnectorUtils.getDisplayNameForConnector} cursorStyle="cursor-pointer" /> - - + + - - + checkIsDummyConnector(featureFlagDetails.testProcessors)}> - +
{switch currentStep { diff --git a/src/screens/Connectors/ConnectorList.res b/src/screens/Connectors/ConnectorList.res index bf01174b9..ef29da5c9 100644 --- a/src/screens/Connectors/ConnectorList.res +++ b/src/screens/Connectors/ConnectorList.res @@ -1,6 +1,5 @@ @react.component let make = (~isPayoutFlow=false) => { - open UIUtils open ConnectorUtils let {showFeedbackModal, setShowFeedbackModal} = React.useContext(GlobalProvider.defaultContext) let (screenState, setScreenState) = React.useState(_ => PageLoaderWrapper.Loading) diff --git a/src/screens/Connectors/ConnectorMetaData/ApplePay/ApplePayIntegrationHelper.res b/src/screens/Connectors/ConnectorMetaData/ApplePay/ApplePayIntegrationHelper.res index 37ed3f26a..66d7fe6b0 100644 --- a/src/screens/Connectors/ConnectorMetaData/ApplePay/ApplePayIntegrationHelper.res +++ b/src/screens/Connectors/ConnectorMetaData/ApplePay/ApplePayIntegrationHelper.res @@ -23,11 +23,11 @@ module SimplifiedHelper = {

{heading->React.string}

- Option.isSome}> + Option.isSome}>

{subText->Option.getOr("")->React.string}

-
+ {switch customElement { | Some(element) => element | _ => React.null diff --git a/src/screens/Connectors/ConnectorPreview.res b/src/screens/Connectors/ConnectorPreview.res index 809baffe3..011ef10d9 100644 --- a/src/screens/Connectors/ConnectorPreview.res +++ b/src/screens/Connectors/ConnectorPreview.res @@ -3,12 +3,12 @@ module InfoField = { let make = (~render, ~label) => { let str = render->Option.getOr("") - LogicUtils.isNonEmptyString}> + LogicUtils.isNonEmptyString}>

{label->React.string}

{str->React.string}

-
+ } } @@ -358,7 +358,7 @@ let make = ( className={`px-4 py-2 rounded-full w-fit font-medium text-sm !text-black ${isConnectorDisabled->connectorStatusStyle}`}> {(isConnectorDisabled ? "DISABLED" : "ENABLED")->React.string}
- + {switch (connector->getConnectorNameTypeFromString(), paypalAutomaticFlow) { | (Processors(PAYPAL), true) => }} - +
| _ => diff --git a/src/screens/Connectors/ConnectorUIUtils/PaymentMethod.res b/src/screens/Connectors/ConnectorUIUtils/PaymentMethod.res index 4658140ad..0c0d2b4c7 100644 --- a/src/screens/Connectors/ConnectorUIUtils/PaymentMethod.res +++ b/src/screens/Connectors/ConnectorUIUtils/PaymentMethod.res @@ -19,7 +19,7 @@ module CardRenderer = { open ConnectorTypes open ConnectorUtils open Wallet - open UIUtils + @react.component let make = ( ~updateDetails, diff --git a/src/screens/Connectors/Wallets/WalletHelper.res b/src/screens/Connectors/Wallets/WalletHelper.res index 113af929c..4e452eb10 100644 --- a/src/screens/Connectors/Wallets/WalletHelper.res +++ b/src/screens/Connectors/Wallets/WalletHelper.res @@ -123,11 +123,11 @@ module SimplifiedHelper = {

{heading->React.string}

- Option.isSome}> + Option.isSome}>

{subText->Option.getOr("")->React.string}

-
+ {switch customElement { | Some(element) => element | _ => React.null diff --git a/src/screens/Customers/ShowCustomers.res b/src/screens/Customers/ShowCustomers.res index d7d7f2cae..c3e00b04d 100644 --- a/src/screens/Customers/ShowCustomers.res +++ b/src/screens/Customers/ShowCustomers.res @@ -20,7 +20,7 @@ module CustomerInfo = { className={`flex flex-wrap ${justifyClassName} dark:bg-jp-gray-lightgray_background dark:border-jp-gray-no_data_border`}> {detailsFields ->Array.mapWithIndex((colType, i) => { - Array.includes(colType))} key={Int.toString(i)}>
-
+ }) ->React.array}
- Option.isSome}> + Option.isSome}> {children->Option.getOr(React.null)} - +
} } diff --git a/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res b/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res index 3184b313e..5f581899b 100644 --- a/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res +++ b/src/screens/Developer/APIKeys/PublishableAndHashKeySection.res @@ -63,7 +63,7 @@ let make = () => { customParentClass="flex items-center gap-5" /> - String.length !== 0}> + String.length !== 0}>
{"Payment Response Hash Key"->React.string} @@ -74,7 +74,7 @@ let make = () => { customParentClass="flex items-center gap-5" />
- +
diff --git a/src/screens/Developer/PaymentSettings/PaymentSettings.res b/src/screens/Developer/PaymentSettings/PaymentSettings.res index 72d7fba62..8e6a8e4da 100644 --- a/src/screens/Developer/PaymentSettings/PaymentSettings.res +++ b/src/screens/Developer/PaymentSettings/PaymentSettings.res @@ -12,7 +12,7 @@ module InfoViewForWebhooks = {

{heading->React.string}

{subHeading->React.string}

- + - +
} @@ -97,11 +97,11 @@ module AuthenticationInput = { - Array.length > 1}> + Array.length > 1}>
removeAuthHeaders(index, key)} />
-
+
} } @@ -165,7 +165,7 @@ module WebHookAuthenticationHeaders = {
- Array.length - 1 && index != 3}> + Array.length - 1 && index != 3}>
addAuthHeaders()} />
-
+ }) ->React.array} @@ -281,7 +281,7 @@ let make = (~webhookOnly=false, ~showFormOnly=false, ~profileId="") => {
- + { currentPageTitle={busiProfieDetails.profile_name} cursorStyle="cursor-pointer" /> - +
{ )} /> - + { fieldWrapperClass="max-w-xl" /> - + diff --git a/src/screens/Developer/PaymentSettings/PaymentSettingsList.res b/src/screens/Developer/PaymentSettings/PaymentSettingsList.res index c48675e9b..28aadb746 100644 --- a/src/screens/Developer/PaymentSettings/PaymentSettingsList.res +++ b/src/screens/Developer/PaymentSettings/PaymentSettingsList.res @@ -10,7 +10,7 @@ let make = ( let businessProfileValues = HyperswitchAtom.businessProfilesAtom->Recoil.useRecoilValueFromAtom - +
-
+ } diff --git a/src/screens/Disputes/Disputes.res b/src/screens/Disputes/Disputes.res index 567b2a3cd..7dba57705 100644 --- a/src/screens/Disputes/Disputes.res +++ b/src/screens/Disputes/Disputes.res @@ -41,7 +41,7 @@ let make = () => { let customUI = <> - +
@@ -56,7 +56,7 @@ let make = () => { {"for your processor."->React.string}

-
+ @@ -67,9 +67,9 @@ let make = () => {
- Array.length > 0}> + Array.length > 0}> - +
diff --git a/src/screens/Disputes/ShowDisputes.res b/src/screens/Disputes/ShowDisputes.res index 92240b7bd..531936b0c 100644 --- a/src/screens/Disputes/ShowDisputes.res +++ b/src/screens/Disputes/ShowDisputes.res @@ -52,7 +52,6 @@ module Details = { open DisputeTypes open DisputesUtils open LogicUtils - open UIUtils let connectorTypeFromName = data.connector->ConnectorUtils.getConnectorNameTypeFromString() let {disputeEvidenceUpload} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom @@ -161,9 +160,9 @@ module DisputesInfo = { {"Summary"->React.string}
- + - + } } @@ -216,7 +215,7 @@ let make = (~id) => {
- + { }, ]} /> - +
} diff --git a/src/screens/Disputes/UploadEvidenceForDisputes.res b/src/screens/Disputes/UploadEvidenceForDisputes.res index c9bf1aa9b..bc8259a67 100644 --- a/src/screens/Disputes/UploadEvidenceForDisputes.res +++ b/src/screens/Disputes/UploadEvidenceForDisputes.res @@ -414,7 +414,7 @@ let make = (~disputeID, ~setUploadEvidenceModal, ~setDisputeData, ~connector) => }
- getConnectorNameTypeFromString(), connectorsSupportAcceptDispute, @@ -426,7 +426,7 @@ let make = (~disputeID, ~setUploadEvidenceModal, ~setDisputeData, ~connector) => customButtonStyle="!py-3 !px-2.5" onClick={_ => handlePopupOpen()} /> - +
- +
{paymentMethodTypeInfo.action->getActionTypeLabel->Jsx.string}
-
- + + {options ->Array.mapWithIndex((option, i) => { }) ->React.array} - +
} @@ -228,7 +228,7 @@ module CheckBoxRenderer = {
{frmConfigInfo.payment_methods ->Array.mapWithIndex((paymentMethodInfo, index) => { - Int.toString}> + Int.toString}> {paymentMethodInfo.payment_method_types ->Array.mapWithIndex((paymentMethodTypeInfo, i) => { }) ->React.array} - + }) ->React.array} diff --git a/src/screens/FraudAndRisk/FRMSelect.res b/src/screens/FraudAndRisk/FRMSelect.res index 204640cef..a41e56349 100644 --- a/src/screens/FraudAndRisk/FRMSelect.res +++ b/src/screens/FraudAndRisk/FRMSelect.res @@ -68,17 +68,16 @@ module NewProcessorCards = { let headerText = "Connect a new fraud & risk management player" - 0}> + 0}>
{frmAvailableForIntegration->descriptedFRMs(headerText)}
-
+ } } @react.component let make = () => { - open UIUtils let getURL = APIUtils.useGetURL() let (screenState, setScreenState) = React.useState(_ => PageLoaderWrapper.Loading) let fetchDetails = APIUtils.useGetMethod() diff --git a/src/screens/FraudAndRisk/FRMSummary.res b/src/screens/FraudAndRisk/FRMSummary.res index 3681f240f..e7f270d30 100644 --- a/src/screens/FraudAndRisk/FRMSummary.res +++ b/src/screens/FraudAndRisk/FRMSummary.res @@ -127,9 +127,9 @@ let make = (~initialValues, ~currentStep, ~setCurrentStep) => {

{"Profile id"->React.string}

{frmInfo.profile_id->React.string}
- Array.length > 0}> + Array.length > 0}> - + } diff --git a/src/screens/GenerateReports/GenerateReport.res b/src/screens/GenerateReports/GenerateReport.res index cae179513..193c6d6d8 100644 --- a/src/screens/GenerateReports/GenerateReport.res +++ b/src/screens/GenerateReports/GenerateReport.res @@ -21,8 +21,8 @@ let make = (~entityName) => { access={accessForGenerateReports} toolTipPosition={Left} /> - + - + } diff --git a/src/screens/HSwitchUtils.res b/src/screens/HSwitchUtils.res index bd5c9fe4e..daa281d38 100644 --- a/src/screens/HSwitchUtils.res +++ b/src/screens/HSwitchUtils.res @@ -9,9 +9,9 @@ module TextFieldRow = {
{label->React.string} - + {"*"->React.string} - +
children @@ -37,7 +37,7 @@ module BackgroundImageWrapper = { ~isBackgroundFullScreen=true, ) => { let heightWidthCss = isBackgroundFullScreen ? "h-screen w-screen" : "h-full w-full" - Option.isSome}> + Option.isSome}>
{children->Option.getOr(React.null)}
-
+ } } diff --git a/src/screens/Helpers/DefaultLandingPage.res b/src/screens/Helpers/DefaultLandingPage.res index c8d88ed6e..346b8620f 100644 --- a/src/screens/Helpers/DefaultLandingPage.res +++ b/src/screens/Helpers/DefaultLandingPage.res @@ -12,7 +12,6 @@ let make = ( ~overriddingStylesSubtitle="", ~showLogoutButton=false, ) => { - open UIUtils let handleLogout = APIUtils.useHandleLogout() let appliedWidth = width === "98%" ? "98%" : width let appliedHeight = height === "100%" ? "100%" : height @@ -39,14 +38,14 @@ let make = (