Refactor: reuse ValidateCodeActionModal #90243
Triggered via pull request
September 29, 2024 21:16
Status
Failure
Total duration
9m 20s
Artifacts
–
Annotations
10 errors and 2 warnings
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L2
Replace `·useEffect,·useState·}·from·'react` with `useEffect,·useState}·from·'react';⏎import·{useOnyx}·from·'react-native-onyx`
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L2
'useEffect' is defined but never used
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L10
Insert `ValidateCodeActionModal·from·'@components/ValidateCodeActionModal';⏎import·`
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L13
Insert `*·as·User·from·'@libs/actions/User';⏎import·*·as·ErrorUtils·from·'@libs/ErrorUtils';⏎import·`
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L17
Replace `CONST·from·'@src/CONST';⏎import·ROUTES·from·'@src/ROUTES';⏎import·type·SCREENS·from·'@src/SCREENS';⏎import·ValidateCodeActionModal·from·"@components/ValidateCodeActionModal"` with `DelegateMagicCodeModal·from·'@pages/settings/Security/AddDelegate/DelegateMagicCodeModal'`
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L20
'ValidateCodeActionModal' is defined but never used
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L21
Replace `{·useOnyx·}·from·"react-native-onyx"` with `*·as·Delegate·from·'@userActions/Delegate'`
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L21
'useOnyx' is defined but never used
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L22
Replace `ONYXKEYS·from·"@src/ONYXKEYS";⏎import·*·as·ErrorUtils·from·'@libs/ErrorUtils` with `CONST·from·'@src/CONST`
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L22
'ONYXKEYS' is defined but never used
|
ESLint check:
src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L26
Unexpected subpath import via alias '@pages/settings/Security/AddDelegate/DelegateMagicCodeModal'. Use './DelegateMagicCodeModal' instead
|
ESLint check:
src/pages/settings/Security/SecuritySettingsPage.tsx#L32
Unexpected subpath import via alias '@pages/settings/Security/AddDelegate/DelegateMagicCodeModal'. Use './AddDelegate/DelegateMagicCodeModal' instead
|