-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added CustomErrorComponent, RoleBasedEmployeeHome, css enhancement * added new localisation module * upgrade ui component version * adding coutn check of master * adding count check of master --------- Co-authored-by: NabeelAyubee <[email protected]>
- Loading branch information
1 parent
ff2e006
commit 78eecd1
Showing
5 changed files
with
107 additions
and
27 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
3 changes: 3 additions & 0 deletions
3
micro-ui/web/micro-ui-internals/packages/modules/sandbox/src/hooks/index.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
22 changes: 22 additions & 0 deletions
22
micro-ui/web/micro-ui-internals/packages/modules/sandbox/src/hooks/useGetMasterDataCount.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,22 @@ | ||
import { useQuery } from "react-query"; | ||
const getMasterDataCountService = async ({ filter, tenantId }) => { | ||
try { | ||
const response = await Digit.CustomService.getResponse({ | ||
url: "/mdms-v2/v1/_count", | ||
body: { | ||
MdmsCriteria: { | ||
tenantId: tenantId, | ||
moduleDetails: filter, | ||
}, | ||
}, | ||
params: {}, | ||
}); | ||
return response; | ||
} catch (error) { | ||
throw new Error(error?.response?.data?.Errors?.[0].description); | ||
} | ||
}; | ||
|
||
export const useGetMasterDataCount = ({ filter, tenantId, config = {} }) => { | ||
return useQuery(["GET_MASTER_DATA_COUNT"], () => getMasterDataCountService({ filter, tenantId }), config); | ||
}; |
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