Skip to content

Commit

Permalink
feat(inji-293): remove formatting changes in unchanged files
Browse files Browse the repository at this point in the history
Signed-off-by: Tilak Puli <[email protected]>
  • Loading branch information
tilak-puli committed Oct 11, 2023
1 parent c59ffe0 commit ba37f84
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions screens/Scan/ScanScreenController.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {useSelector} from '@xstate/react';
import {useContext} from 'react';
import {useTranslation} from 'react-i18next';
import { useSelector } from '@xstate/react';
import { useContext } from 'react';
import { useTranslation } from 'react-i18next';

import {selectShareableVcsMetadata} from '../../machines/vc';
import {GlobalContext} from '../../shared/GlobalContext';
import { selectShareableVcsMetadata } from '../../machines/vc';
import { GlobalContext } from '../../shared/GlobalContext';
import {
selectIsLocationDenied,
selectIsLocationDisabled,
Expand All @@ -25,39 +25,39 @@ import {
} from '../../machines/bleShare/scan/scanMachine';

export function useScanScreen() {
const {t} = useTranslation('ScanScreen');
const {appService} = useContext(GlobalContext);
const { t } = useTranslation('ScanScreen');
const { appService } = useContext(GlobalContext);
const scanService = appService.children.get('scan');
const vcService = appService.children.get('vc');

const shareableVcsMetadata = useSelector(
vcService,
selectShareableVcsMetadata,
selectShareableVcsMetadata
);

const isLocationDisabled = useSelector(scanService, selectIsLocationDisabled);
const isLocationDenied = useSelector(scanService, selectIsLocationDenied);
const isReadyForBluetoothStateCheck = useSelector(
scanService,
selectReadyForBluetoothStateCheck,
selectReadyForBluetoothStateCheck
);
const isStartPermissionCheck = useSelector(
scanService,
selectIsStartPermissionCheck,
selectIsStartPermissionCheck
);
const isNearByDevicesPermissionDenied = useSelector(
scanService,
selectIsNearByDevicesPermissionDenied,
selectIsNearByDevicesPermissionDenied
);
const isBluetoothPermissionDenied = useSelector(
scanService,
selectIsBluetoothPermissionDenied,
selectIsBluetoothPermissionDenied
);
const isBluetoothDenied = useSelector(scanService, selectIsBluetoothDenied);
const locationError = {message: '', button: ''};
const locationError = { message: '', button: '' };
const isMinimumStorageRequiredForAuditEntryLimitReached = useSelector(
scanService,
selectIsMinimumStorageRequiredForAuditEntryLimitReached,
selectIsMinimumStorageRequiredForAuditEntryLimitReached
);

if (isLocationDisabled) {
Expand Down
2 changes: 1 addition & 1 deletion shared/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export function groupBy<T>(array: T[], predicate: (T) => boolean) {
const trueElements = [];
const falseElements = [];

array?.forEach(e => {
array?.forEach((e) => {
if (predicate(e)) {
trueElements.push(e);
} else {
Expand Down

0 comments on commit ba37f84

Please sign in to comment.