diff --git a/public/assets/data/profile-sections/children.json b/public/assets/data/profile-sections/children.json index a7d936da..b16ee954 100644 --- a/public/assets/data/profile-sections/children.json +++ b/public/assets/data/profile-sections/children.json @@ -1,5 +1,6 @@ { - "title": "Job", + "id": "children", + "title": "Children", "fields": [ { "datafield": "ff:hasBirthday", diff --git a/public/assets/data/profile-sections/education.json b/public/assets/data/profile-sections/education.json index a7d936da..2bc3c6f3 100644 --- a/public/assets/data/profile-sections/education.json +++ b/public/assets/data/profile-sections/education.json @@ -1,5 +1,6 @@ { - "title": "Job", + "id": "education", + "title": "Education", "fields": [ { "datafield": "ff:hasBirthday", diff --git a/public/assets/data/profile-sections/income.json b/public/assets/data/profile-sections/income.json index a7d936da..aade2682 100644 --- a/public/assets/data/profile-sections/income.json +++ b/public/assets/data/profile-sections/income.json @@ -1,5 +1,6 @@ { - "title": "Job", + "id": "income", + "title": "Income", "fields": [ { "datafield": "ff:hasBirthday", diff --git a/public/assets/data/profile-sections/job.json b/public/assets/data/profile-sections/job.json index a7d936da..273ef030 100644 --- a/public/assets/data/profile-sections/job.json +++ b/public/assets/data/profile-sections/job.json @@ -1,4 +1,5 @@ { + "id": "job", "title": "Job", "fields": [ { diff --git a/src/screens/onboarding-sections/components/OnboardingSectionsItem.js b/src/screens/onboarding-sections/components/OnboardingSectionsItem.js index 4d534622..2b19e67b 100644 --- a/src/screens/onboarding-sections/components/OnboardingSectionsItem.js +++ b/src/screens/onboarding-sections/components/OnboardingSectionsItem.js @@ -7,7 +7,7 @@ import { Link } from "react-router-dom"; import VStack from "../../../components/VStack"; import HStack from "../../../components/HStack"; -const OnboardingSectionsItem = ({section, entityData, active, completed, first}) => { +const OnboardingSectionsItem = ({section, entityData, active, completed}) => { const backgroundColor = active ? yellow[600] : (completed ? green[500] : 'rgba(0, 0, 0, 0.1)') return ( @@ -29,7 +29,6 @@ const OnboardingSectionsItem = ({section, entityData, active, completed, first}) state={{ entityData }} > - {first ? Start : null} diff --git a/src/screens/onboarding-sections/components/OnboardingSectionsList.js b/src/screens/onboarding-sections/components/OnboardingSectionsList.js index ebbfdf27..1b07adaf 100644 --- a/src/screens/onboarding-sections/components/OnboardingSectionsList.js +++ b/src/screens/onboarding-sections/components/OnboardingSectionsList.js @@ -14,9 +14,6 @@ const OnboardingSectionsList = ({onboardingSectionsData}) => { const sections = useProfileInputSectionStore((state) => state.sections); //const allCompleted = sections.every((obj) => obj.completed); - console.log('sections:', sections); - console.log('activeSection:', activeSection); - return ( @@ -31,8 +28,7 @@ const OnboardingSectionsList = ({onboardingSectionsData}) => { section={section} entityData={entityData} active={section.id === activeSection} - completed={sectionStatus.completed} - first={index === 0}/> + completed={sectionStatus.completed}/> ) })} diff --git a/src/screens/profile-section/ProfileSectionScreen.js b/src/screens/profile-section/ProfileSectionScreen.js index a7f57f4c..ad3d8441 100644 --- a/src/screens/profile-section/ProfileSectionScreen.js +++ b/src/screens/profile-section/ProfileSectionScreen.js @@ -35,7 +35,7 @@ const ProfileSectionScreen = () => { {!completed ? () - : () + : () } ) : diff --git a/src/screens/profile-section/components/ProfileSectionCompleted.js b/src/screens/profile-section/components/ProfileSectionCompleted.js index 60905adb..cc54ebfd 100644 --- a/src/screens/profile-section/components/ProfileSectionCompleted.js +++ b/src/screens/profile-section/components/ProfileSectionCompleted.js @@ -7,7 +7,7 @@ import {Button, Card, CardContent, Typography} from "@mui/material"; import {green, yellow} from "@mui/material/colors"; import SentimentSatisfiedOutlinedIcon from "@mui/icons-material/SentimentSatisfiedOutlined"; -const ProfileSectionCompleted = ({id}) => { +const ProfileSectionCompleted = ({title, id}) => { const sectionStatus = useProfileInputSectionStore( (state) => state.sections ); @@ -22,7 +22,7 @@ const ProfileSectionCompleted = ({id}) => { - About you + {title} Profilbereich vollständig!