Browse Source

feat: introduce QuestionSheet component and slider-slide-one for enhanced form input interactions and automated dataset resolution

master
Muhammad A. Ghorbani 2 weeks ago
parent
commit
cb42be9747
  1. 4
      src/components/Componentes/question-sheet.tsx
  2. 5
      src/components/Componentes/slider-slide-one.tsx

4
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}`);

5
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<string, string>)[
"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 (

Loading…
Cancel
Save