Skip to content

Commit

Permalink
chore: removed duplicated file and updated imports (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 authored Sep 2, 2024
1 parent 92e6b86 commit b767afc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 148 deletions.
145 changes: 0 additions & 145 deletions src/screens/Hooks/SwitchHooks.res

This file was deleted.

2 changes: 1 addition & 1 deletion src/screens/OMPSwitch/MerchantSwitch.res
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ let make = () => {
let getURL = useGetURL()
let fetchDetails = useGetMethod()
let showToast = ToastState.useShowToast()
let merchSwitch = SwitchHooks.useMerchantSwitch()
let merchSwitch = OMPSwitchHooks.useMerchantSwitch()
let {userInfo: {merchantId}} = React.useContext(UserInfoProvider.defaultContext)
let (showModal, setShowModal) = React.useState(_ => false)
let (merchantList, setMerchantList) = Recoil.useRecoilState(HyperswitchAtom.merchantListAtom)
Expand Down
2 changes: 1 addition & 1 deletion src/screens/OMPSwitch/OrgSwitch.res
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let make = () => {
let getURL = useGetURL()
let fetchDetails = useGetMethod()
let showToast = ToastState.useShowToast()
let orgSwitch = SwitchHooks.useOrgSwitch()
let orgSwitch = OMPSwitchHooks.useOrgSwitch()
let {userInfo: {orgId}} = React.useContext(UserInfoProvider.defaultContext)
let (orgList, setOrgList) = Recoil.useRecoilState(HyperswitchAtom.orgListAtom)

Expand Down
2 changes: 1 addition & 1 deletion src/screens/OMPSwitch/ProfileSwitch.res
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ let make = () => {
let getURL = useGetURL()
let fetchDetails = useGetMethod()
let showToast = ToastState.useShowToast()
let profileSwitch = SwitchHooks.useProfileSwitch()
let profileSwitch = OMPSwitchHooks.useProfileSwitch()
let (showModal, setShowModal) = React.useState(_ => false)
let {userInfo: {profileId}} = React.useContext(UserInfoProvider.defaultContext)
let (profileList, setProfileList) = Recoil.useRecoilState(HyperswitchAtom.profileListAtom)
Expand Down

0 comments on commit b767afc

Please sign in to comment.