forked from upyog/UPYOG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request upyog#1039 from abhijniua/Dev-2.0
Adding Lat long feature from image with new additional fields as well
- Loading branch information
Showing
13 changed files
with
1,114 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/hooks/obps/useDistricts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useQuery } from "react-query"; | ||
import { MdmsService } from "../../services/elements/MDMS"; | ||
|
||
const useDistricts = (tenantId, moduleCode, type, config = {}) => { | ||
const usedistricttype = () => { | ||
return useQuery("BPA_DISTRICTS", () => MdmsService.BPADistrict(tenantId, moduleCode ,type), config); | ||
}; | ||
|
||
|
||
switch (type) { | ||
case "Districts": | ||
return usedistricttype(); | ||
default: | ||
return null; | ||
} | ||
}; | ||
|
||
|
||
|
||
export default useDistricts; |
20 changes: 20 additions & 0 deletions
20
frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/hooks/obps/useULBList.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useQuery } from "react-query"; | ||
import { MdmsService } from "../../services/elements/MDMS"; | ||
|
||
const useULBList = (tenantId, moduleCode, type, config = {}) => { | ||
const useULBType = () => { | ||
return useQuery("BPA_ULB_TYPE", () => MdmsService.BPAUlb(tenantId, moduleCode ,type), config); | ||
}; | ||
|
||
|
||
switch (type) { | ||
case "Ulb": | ||
return useULBType(); | ||
default: | ||
return null; | ||
} | ||
}; | ||
|
||
|
||
|
||
export default useULBList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.