diff --git a/web/src/pages/Wizard/HomeContent.tsx b/web/src/pages/Wizard/HomeContent.tsx new file mode 100644 index 0000000000..da776e5c6c --- /dev/null +++ b/web/src/pages/Wizard/HomeContent.tsx @@ -0,0 +1,28 @@ +import Header from 'components/Wizard/Header'; +import Content from 'components/Wizard/Content'; +import {withCustomization} from 'providers/Customization'; +import {useWizard} from 'providers/Wizard'; +import * as S from './Wizard.styled'; + +const HomeContent = () => { + const {activeStepId, isLoading, onGoTo, onNext, steps} = useWizard(); + const completedSteps = steps.filter(({state}) => state === 'completed').length; + + return ( + + + Welcome to Tracetest! + + Here's a guide to get started and help you test your modern applications with OpenTelemetry. + + + + +
+ + + + ); +}; + +export default withCustomization(HomeContent, 'homeContent'); diff --git a/web/src/pages/Wizard/Wizard.tsx b/web/src/pages/Wizard/Wizard.tsx index 57eac9a9ac..09b0717209 100644 --- a/web/src/pages/Wizard/Wizard.tsx +++ b/web/src/pages/Wizard/Wizard.tsx @@ -1,40 +1,14 @@ import withAnalytics from 'components/WithAnalytics/WithAnalytics'; -import Header from 'components/Wizard/Header'; -import Content from 'components/Wizard/Content'; import DataStoreProvider from 'providers/DataStore/DataStore.provider'; import SettingsProvider from 'providers/Settings/Settings.provider'; -import {useWizard} from 'providers/Wizard'; -import * as S from './Wizard.styled'; - -const Wizard = () => { - const {activeStepId, isLoading, onGoTo, onNext, steps} = useWizard(); - const completedSteps = steps.filter(({state}) => state === 'completed').length; - - return ( - - - - - Welcome to Tracetest! - - Here's a guide to get started and help you test your modern applications with OpenTelemetry. - - - - -
- - - - - - ); -}; +import HomeContent from './HomeContent'; + +const Wizard = () => ( + + + + + +); export default withAnalytics(Wizard, 'wizard');