From 8c06cac27ab2c699bb7346c31cab0e9a0c87a230 Mon Sep 17 00:00:00 2001 From: M3gA-Mind Date: Thu, 26 Mar 2026 00:11:47 +0530 Subject: [PATCH] refactor: update Welcome and Onboarding components for improved structure and clarity - Made the `isWeb` prop optional in the Welcome component for better flexibility. - Simplified the Welcome page layout by consolidating the header into a single line. - Removed unused Lottie animation references from the Onboarding component to streamline the code. --- src/pages/Welcome.tsx | 6 ++---- src/pages/onboarding/Onboarding.tsx | 8 -------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/pages/Welcome.tsx b/src/pages/Welcome.tsx index 62b4da548..4246592bc 100644 --- a/src/pages/Welcome.tsx +++ b/src/pages/Welcome.tsx @@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom'; import RotatingTetrahedronCanvas from '../components/RotatingTetrahedronCanvas'; interface WelcomeProps { - isWeb: boolean; + isWeb?: boolean; } const Welcome = ({ isWeb }: WelcomeProps) => { @@ -16,9 +16,7 @@ const Welcome = ({ isWeb }: WelcomeProps) => { -

- OpenHuman -

+

OpenHuman

Your AI superhuman for personal and business life. diff --git a/src/pages/onboarding/Onboarding.tsx b/src/pages/onboarding/Onboarding.tsx index 2feb8befc..a91979458 100644 --- a/src/pages/onboarding/Onboarding.tsx +++ b/src/pages/onboarding/Onboarding.tsx @@ -1,7 +1,6 @@ import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import LottieAnimation from '../../components/LottieAnimation'; import ProgressIndicator from '../../components/ProgressIndicator'; import { userApi } from '../../services/api/userApi'; import { setOnboardedForUser } from '../../store/authSlice'; @@ -17,13 +16,6 @@ const Onboarding = () => { const [currentStep, setCurrentStep] = useState(0); const totalSteps = 3; - // Lottie animation files for each step - const stepAnimations = [ - '/lottie/wave.json', // Step 1 - Features - '/lottie/safe3.json', // Step 2 - Privacy - '/lottie/trophy.json', // Step 3 - Get Started - ]; - const handleNext = () => { if (currentStep < totalSteps) { setCurrentStep(currentStep + 1);