From cb42be9747489fe34bcfcc4f56cb6f28de7d8032 Mon Sep 17 00:00:00 2001 From: "Muhammad A. Ghorbani" Date: Thu, 3 Sep 2026 10:12:24 +0330 Subject: [PATCH] feat: introduce QuestionSheet component and slider-slide-one for enhanced form input interactions and automated dataset resolution --- src/components/Componentes/question-sheet.tsx | 4 ++-- src/components/Componentes/slider-slide-one.tsx | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Componentes/question-sheet.tsx b/src/components/Componentes/question-sheet.tsx index 0aa7739..da943c6 100644 --- a/src/components/Componentes/question-sheet.tsx +++ b/src/components/Componentes/question-sheet.tsx @@ -650,10 +650,10 @@ export function QuestionSheet({ question, disabled }: QuestionSheetProps) { filteredOptions.map((option) => { const isSelected = isMulti ? localSelectedList.includes(option.id) || - localSelectedList.includes(option.value) || + localSelectedList.includes(String(option.value)) || localSelectedList.includes(option.id.split(".").pop() || "") : singleValue === option.id || - singleValue === option.value || + singleValue === String(option.value) || singleValue === option.id.split(".").pop() || option.id.endsWith(`.${singleValue}`); diff --git a/src/components/Componentes/slider-slide-one.tsx b/src/components/Componentes/slider-slide-one.tsx index 6380cc7..68985a2 100644 --- a/src/components/Componentes/slider-slide-one.tsx +++ b/src/components/Componentes/slider-slide-one.tsx @@ -50,9 +50,12 @@ export function SliderSlideOne({ index, totalSteps, onScrollToEnd }: SliderSlide const termsTitle = t["terms & conditions"] || "Terms & Conditions"; const welcomeText = - t[ + (t as Record)[ "Welcome to Habib Marriage. Please review our terms of service before proceeding. By registering and using this platform, you agree to these terms" ] || + t[ + "Dear user, while welcoming you to the Habib Marij application, please read the following rules and regulations carefully before using the services of this platform. Your registration and use of this application constitutes full acceptance of these rules." + ] || "Welcome to Habib Marriage. Please review our terms of service before proceeding. By registering and using this platform, you agree to these terms"; return (