Skip to content

Commit

Permalink
fixing prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sumo-slonik committed Jan 7, 2025
1 parent aa7c70a commit 7ccf30b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6440,8 +6440,6 @@ const CONST = {
},

MIGRATED_USER_WELCOME_MODAL: 'migratedUserWelcomeModal',

DEFAULT_POLICY_ID: '-1',
} as const;

type Country = keyof typeof CONST.ALL_COUNTRIES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function SageIntacctToggleMappingsPage({route}: SageIntacctToggleMappingsPagePro

const policy = usePolicy(route.params.policyID);
const mappingName: SageIntacctMappingName = route.params.mapping;
const policyID: string = policy?.id ?? CONST.DEFAULT_POLICY_ID;
const policyID: string = policy?.id ?? '-1';

Check failure on line 55 in src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

const config = policy?.connections?.intacct?.config;
const isImportMappingEnable = config?.mappings?.[mappingName] !== CONST.SAGE_INTACCT_MAPPING_VALUE.NONE;
const isAccordionExpanded = useSharedValue(isImportMappingEnable);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React, {useCallback, useEffect} from 'react';
import {View} from 'react-native';
import {useSharedValue} from 'react-native-reanimated';
import Accordion from '@components/Accordion';
import ConnectionLayout from '@components/ConnectionLayout';
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
import OfflineWithFeedback from '@components/OfflineWithFeedback';
import Text from '@components/Text';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import * as QuickbooksOnline from '@libs/actions/connections/QuickbooksOnline';
Expand Down
4 changes: 2 additions & 2 deletions src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ReactNode, useEffect} from 'react';
import React, {useMemo} from 'react';
import type {ReactNode} from 'react';
import React, {useEffect, useMemo} from 'react';
import {View} from 'react-native';
import type {StyleProp, TextStyle, ViewStyle} from 'react-native';
import {useSharedValue} from 'react-native-reanimated';
Expand Down

0 comments on commit 7ccf30b

Please sign in to comment.