diff --git a/src/OnboardingSPA/components/CardWithOptionsTemplate/CardWithOptions/index.js b/src/OnboardingSPA/components/CardWithOptions/index.js similarity index 85% rename from src/OnboardingSPA/components/CardWithOptionsTemplate/CardWithOptions/index.js rename to src/OnboardingSPA/components/CardWithOptions/index.js index 75e748fbc..e60e4e847 100644 --- a/src/OnboardingSPA/components/CardWithOptionsTemplate/CardWithOptions/index.js +++ b/src/OnboardingSPA/components/CardWithOptions/index.js @@ -1,11 +1,11 @@ -import { OptionItem } from '../'; import { memo } from '@wordpress/element'; +import OptionWithHeadingSubHeading from '../OptionWithHeadingSubHeading'; const CardWithOptions = ( { title, options, selection, callback } ) => { const buildOptions = () => { return options.map( ( data, idx ) => { return ( - { +const OptionWithHeadingSubHeading = ( { + idx, + title, + desc, + isSelected, + callback, +} ) => { return (
{ if ( callback && typeof callback === 'function' ) { callback( idx + 1 ); @@ -22,20 +28,27 @@ const OptionItem = ( { idx, title, desc, isSelected, callback } ) => { >
-
-
+
+
{ title }
-
+
{ desc }
@@ -43,4 +56,4 @@ const OptionItem = ( { idx, title, desc, isSelected, callback } ) => { ); }; -export default memo( OptionItem ); +export default memo( OptionWithHeadingSubHeading ); diff --git a/src/OnboardingSPA/components/CardWithOptionsTemplate/OptionItem/stylesheet.scss b/src/OnboardingSPA/components/OptionWithHeadingSubHeading/stylesheet.scss similarity index 96% rename from src/OnboardingSPA/components/CardWithOptionsTemplate/OptionItem/stylesheet.scss rename to src/OnboardingSPA/components/OptionWithHeadingSubHeading/stylesheet.scss index 617a06774..5e5d6a8d6 100644 --- a/src/OnboardingSPA/components/CardWithOptionsTemplate/OptionItem/stylesheet.scss +++ b/src/OnboardingSPA/components/OptionWithHeadingSubHeading/stylesheet.scss @@ -1,6 +1,6 @@ $background-color: var(--nfd-onboarding-card-background); -.nfd-sg-card__data__option { +.nfd__option_heading_subheading { &__wrapper { display: flex; diff --git a/src/OnboardingSPA/steps/SiteGen/Experience/index.js b/src/OnboardingSPA/steps/SiteGen/Experience/index.js index c4c1a9c68..198b7e60a 100644 --- a/src/OnboardingSPA/steps/SiteGen/Experience/index.js +++ b/src/OnboardingSPA/steps/SiteGen/Experience/index.js @@ -5,7 +5,7 @@ import getContents from './contents'; import { HEADER_SITEGEN } from '../../../../constants'; import { store as nfdOnboardingStore } from '../../../store'; import CommonLayout from '../../../components/Layouts/Common'; -import { CardWithOptions } from '../../../components/CardWithOptionsTemplate'; +import CardWithOptions from '../../../components/CardWithOptions'; import SiteGenLoader from '../../../components/Loaders/SiteGenLoader'; import SitegenAiStateHandler from '../../../components/StateHandlers/SitegenAi'; diff --git a/src/OnboardingSPA/styles/app.scss b/src/OnboardingSPA/styles/app.scss index a5cacf512..2921e45f8 100644 --- a/src/OnboardingSPA/styles/app.scss +++ b/src/OnboardingSPA/styles/app.scss @@ -56,8 +56,8 @@ @import "../components/TextInput/TextInputSiteGen/stylesheet"; @import "../components/ToggleDarkMode/stylesheet"; @import "../components/Button/NextButtonSiteGen/stylesheet"; -@import "../components/CardWithOptionsTemplate/OptionItem/stylesheet"; -@import "../components/CardWithOptionsTemplate/CardWithOptions/stylesheet"; +@import "../components/OptionWithHeadingSubHeading/stylesheet"; +@import "../components/CardWithOptions/stylesheet"; @import "../components/Loaders/SiteGenLoader/stylesheet"; @import "../components/Footer/stylesheet"; @import "../components/LivePreview/SiteGenCard/stylesheet";