Skip to content

Commit

Permalink
chore: merged latest branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay committed Jan 2, 2024
2 parents 3704f20 + 40ae278 commit 91c7340
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/screens/HyperSwitch/Home/HomeUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ module CheckoutCard = {
let (_authStatus, setAuthStatus) = React.useContext(AuthInfoProvider.authStatusContext)
let {setIsSidebarExpanded} = React.useContext(SidebarProvider.defaultContext)
let isPlayground = HSLocalStorage.getIsPlaygroundFromLocalStorage()
let isConfigureConnector = ListHooks.useListCount(~entityName=CONNECTOR) > 0
let connectorList =
HyperswitchAtom.connectorListAtom
->Recoil.useRecoilValueFromAtom
->LogicUtils.safeParse
->LogicUtils.getObjectArrayFromJson
let isConfigureConnector = connectorList->Array.length > 0
let urlPath = url.path->Belt.List.toArray->Js.Array2.joinWith("_")

let handleOnClick = _ => {
Expand Down
8 changes: 7 additions & 1 deletion src/screens/HyperSwitch/Order/Orders.res
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ let make = (~previewOnly=false) => {
let (searchText, setSearchText) = React.useState(_ => "")
let (filters, setFilters) = React.useState(_ => None)
let (paymentModal, setPaymentModal) = React.useState(_ => false)
let isConfigureConnector = ListHooks.useListCount(~entityName=CONNECTOR) > 0
let connectorList =
HyperswitchAtom.connectorListAtom
->Recoil.useRecoilValueFromAtom
->LogicUtils.safeParse
->LogicUtils.getObjectArrayFromJson
let isConfigureConnector = connectorList->Array.length > 0

let (widthClass, heightClass) = React.useMemo1(() => {
previewOnly ? ("w-full", "max-h-96") : ("w-full", "")
}, [previewOnly])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ module AddEntryBtn = {
buttonSize=Small
buttonType={Primary}
rightIcon={FontAwesome("plus")}
onClick={_ => setShowModal(_ => true)}
onClick={_ => {
setModalState(_ => Edit)
setShowModal(_ => true)
}}
/>
</UIUtils.RenderIf>
<Modal
Expand Down
23 changes: 22 additions & 1 deletion tailwindHyperSwitch.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,28 @@ module.exports = {
variants: {},
plugins: [
plugin(function ({ addUtilities }) {
const newUtilities = {};
const newUtilities = {
"*::-webkit-scrollbar": {
display: "none", // chrome and other
},
"*": {
scrollbarWidth: "none", // firefox
},
".show-scrollbar::-webkit-scrollbar": {
display: "block",
overflow: "scroll",
height: "4px",
width: "8px",
},
".show-scrollbar::-webkit-scrollbar-thumb": {
display: "block",
borderRadius: "20rem",
backgroundColor: "#8A8C8F",
},
".show-scrollbar::-webkit-scrollbar-track": {
backgroundColor: "#FFFFFFF",
},
};
addUtilities(newUtilities);
}),
],
Expand Down

0 comments on commit 91c7340

Please sign in to comment.