Skip to content

Refactor: reuse ValidateCodeActionModal #1270

Refactor: reuse ValidateCodeActionModal

Refactor: reuse ValidateCodeActionModal #1270

Triggered via pull request September 29, 2024 21:16
Status Failure
Total duration 1m 3s
Artifacts

lint-changed.yml

on: pull_request
Changed files ESLint check
54s
Changed files ESLint check
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Changed files 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`
Changed files ESLint check: src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L10
Insert `ValidateCodeActionModal·from·'@components/ValidateCodeActionModal';⏎import·`
Changed files ESLint check: src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L13
Insert `*·as·User·from·'@libs/actions/User';⏎import·*·as·ErrorUtils·from·'@libs/ErrorUtils';⏎import·`
Changed files 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'`
Changed files ESLint check: src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L20
'ValidateCodeActionModal' is defined but never used
Changed files ESLint check: src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L21
Replace `{·useOnyx·}·from·"react-native-onyx"` with `*·as·Delegate·from·'@userActions/Delegate'`
Changed files 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`
Changed files ESLint check: src/pages/settings/Security/AddDelegate/ConfirmDelegatePage.tsx#L26
Unexpected subpath import via alias '@pages/settings/Security/AddDelegate/DelegateMagicCodeModal'. Use './DelegateMagicCodeModal' instead
Changed files ESLint check: src/pages/settings/Security/SecuritySettingsPage.tsx#L32
Unexpected subpath import via alias '@pages/settings/Security/AddDelegate/DelegateMagicCodeModal'. Use './AddDelegate/DelegateMagicCodeModal' instead