Skip to content

Commit

Permalink
Merge pull request #44867 from software-mansion-labs/fix/eslint-netsuite
Browse files Browse the repository at this point in the history
[NoQA] Fix eslint on main
  • Loading branch information
mountiny authored Jul 4, 2024
2 parents d93e24b + 6c2372c commit 8ec71d6
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useRef} from 'react';
import type {ForwardedRef} from 'react';
import type {ComponentType, ForwardedRef} from 'react';
import {View} from 'react-native';
import ConnectionLayout from '@components/ConnectionLayout';
import InteractiveStepSubHeader from '@components/InteractiveStepSubHeader';
Expand All @@ -14,8 +14,10 @@ import CONST from '@src/CONST';
import NetSuiteTokenInputForm from './substeps/NetSuiteTokenInputForm';
import NetSuiteTokenSetupContent from './substeps/NetSuiteTokenSetupContent';

const staticContentSteps = Array(4).fill(NetSuiteTokenSetupContent);
const tokenInputSteps: Array<React.ComponentType<SubStepProps & {policyID: string}>> = [...staticContentSteps, NetSuiteTokenInputForm];
type SubStepWithPolicy = SubStepProps & {policyID: string};

const staticContentSteps = Array<ComponentType<SubStepWithPolicy>>(4).fill(NetSuiteTokenSetupContent);
const tokenInputSteps: Array<ComponentType<SubStepWithPolicy>> = [...staticContentSteps, NetSuiteTokenInputForm];

function NetSuiteTokenInputPage({policy}: WithPolicyConnectionsProps) {
const policyID = policy?.id ?? '-1';
Expand All @@ -33,7 +35,7 @@ function NetSuiteTokenInputPage({policy}: WithPolicyConnectionsProps) {
prevScreen,
screenIndex,
moveTo,
} = useSubStep<SubStepProps & {policyID: string}>({bodyContent: tokenInputSteps, startFrom: 0, onFinished: submit});
} = useSubStep<SubStepWithPolicy>({bodyContent: tokenInputSteps, startFrom: 0, onFinished: submit});

const handleBackButtonPress = () => {
if (screenIndex === 0) {
Expand Down

0 comments on commit 8ec71d6

Please sign in to comment.