feat(INJI-172): display error popup to restrict vc share when audit entry is not possible

audit entry cannot be made when the device remaining storage has reached the minimumStorageRequiredForAuditEntryInMB

Issue Link https://mosip.atlassian.net/browse/INJI-172
This commit is contained in:
Kiruthika Jeyashankar
2023-07-05 15:24:17 +05:30
parent 2d26f3c433
commit 95d70c610c
13 changed files with 131 additions and 19 deletions

View File

@@ -39,7 +39,9 @@ export const RequestScreen: React.FC = () => {
useFocusEffect(
React.useCallback(() => {
async function checkStorage() {
const isStorageLimitReached = await isMaximumStorageLimitReached();
const isStorageLimitReached = await isMaximumStorageLimitReached(
'maximumStorageLimitInMB'
);
if (isStorageLimitReached) {
setShowMaximumStorageLimitReachedError(true);
}