Download wp-calypso/client/landing/stepper/declarative-flow/helpers/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/declarative-flow/helpers/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/declarative-flow/helpers/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/declarative-flow/helpers/index.ts
366 Bytes
| import { STEPS } from '../internals/steps'; | |
| export const shouldRedirectToSiteMigration = ( | |
| step: string, | |
| platform: string, | |
| origin?: string | null, | |
| entryPoint?: string | null | |
| ) => { | |
| return ( | |
| step === STEPS.IMPORT_LIST.slug && | |
| platform === 'wordpress' && | |
| ( origin === STEPS.SITE_MIGRATION_IDENTIFY.slug || entryPoint === 'wp-admin-importers-list' ) | |
| ); | |
| }; | |