react-code-dataset / wp-calypso /client /landing /stepper /declarative-flow /helpers /should-use-step-container-v2.ts
react-code-dataset / wp-calypso /client /landing /stepper /declarative-flow /helpers /should-use-step-container-v2.ts
Download wp-calypso/client/landing/stepper/declarative-flow/helpers/should-use-step-container-v2.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/declarative-flow/helpers/should-use-step-container-v2.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/declarative-flow/helpers/should-use-step-container-v2.ts
-
curl -L -o should-use-step-container-v2.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/declarative-flow/helpers/should-use-step-container-v2.ts
486 Bytes
| import { | |
| SITE_SETUP_FLOW, | |
| ONBOARDING_FLOW, | |
| SITE_MIGRATION_FLOW, | |
| NEW_HOSTED_SITE_FLOW, | |
| TRANSFERRING_HOSTED_SITE_FLOW, | |
| ONBOARDING_UNIFIED_FLOW, | |
| } from '@automattic/onboarding'; | |
| const FLOWS_USING_STEP_CONTAINER_V2 = [ | |
| SITE_SETUP_FLOW, | |
| ONBOARDING_FLOW, | |
| NEW_HOSTED_SITE_FLOW, | |
| TRANSFERRING_HOSTED_SITE_FLOW, | |
| SITE_MIGRATION_FLOW, | |
| ONBOARDING_UNIFIED_FLOW, | |
| ]; | |
| export const shouldUseStepContainerV2 = ( flow: string ) => { | |
| return FLOWS_USING_STEP_CONTAINER_V2.includes( flow ); | |
| }; | |