diff --git a/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js b/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js index eea7362b0..6d79af670 100644 --- a/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js +++ b/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js @@ -11,16 +11,11 @@ import CommonLayout from '../../../components/Layouts/Common'; import TextInputSiteGen from '../../../components/TextInput/TextInputSiteGen'; import NextButtonSiteGen from '../../../components/Button/NextButtonSiteGen'; -import SiteGenSiteDetailsWalkthrough from '../SiteDetails/walkthrough'; -import { getSiteDetailsQuestionare } from '../../../utils/api/siteGen'; - const SiteGenSiteDetails = () => { const content = getContents(); const isLargeViewport = useViewportMatch( 'small' ); const [ customerInput, setCustomerInput ] = useState(); const [ isValidInput, setIsValidInput ] = useState( false ); - const [ isWalkthrough, setIsWalkthrough ] = useState( false ); - const [ siteDetailsmeta, setSiteDetailsmeta ] = useState(); const { currentData } = useSelect( ( select ) => { return { currentData: @@ -65,69 +60,33 @@ const SiteGenSiteDetails = () => { } }, [ customerInput ] ); - const handleClickWalkThrough = () => { - setIsWalkthrough( true ); - }; - - useEffect( () => { - getSiteDetails(); - }, [] ); - - async function getSiteDetails() { - try { - let siteDetailsmetas = await getSiteDetailsQuestionare(); - siteDetailsmetas = siteDetailsmetas.body; - setSiteDetailsmeta( siteDetailsmetas ); - } catch ( err ) { - // eslint-disable-next-line no-console - console.error( 'Error fetching data:', err ); - } - } - return ( - { isWalkthrough ? ( - - ) : ( -
- - - { isLargeViewport && ( -
- -
- ) } -
-
- { content.walkThroughText } - - { content.walkThroughlink } - -
-
- ) } +
+ + + { isLargeViewport && ( +
+ +
+ ) } +
+
);