From 0eecbf1f55cc9f0270c029f43c865e644e2a74ac Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Thu, 18 Jan 2024 00:16:54 +0530 Subject: [PATCH] Remove Detailed Prompt View --- .../steps/SiteGen/SiteDetails/index.js | 89 +++++-------------- 1 file changed, 24 insertions(+), 65 deletions(-) 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 && ( +
+ +
+ ) } +
+
);