From 289549c6e63704d9a64b26aa49e8a32c0908da9e Mon Sep 17 00:00:00 2001 From: Aaron McAdam Date: Fri, 2 Aug 2024 15:11:27 +0100 Subject: [PATCH] dialog styles --- src/components/quiz-button.tsx | 23 +++++------------------ src/components/quiz.tsx | 2 +- src/components/ui/dialog.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/src/components/quiz-button.tsx b/src/components/quiz-button.tsx index c31233e..b0dd67a 100644 --- a/src/components/quiz-button.tsx +++ b/src/components/quiz-button.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as React from "react"; import { Button } from "@/components/ui/button"; import { @@ -11,22 +9,9 @@ import { DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; -import { cn } from "@/lib/utils"; import { DialogClose } from "@radix-ui/react-dialog"; import { Quiz } from "./quiz"; -type Option = { - display: string; - value: string; - isRejection: boolean; -}; - -type Question = { - question: string; - type: string; - options: Option[]; -}; - export function QuizButton() { return ( @@ -35,10 +20,12 @@ export function QuizButton() { Take the quiz - + - Is Manual Right For You? - + + Is Manual Right For You? + + Help us provide you with the best possible care by answering a few quick questions. diff --git a/src/components/quiz.tsx b/src/components/quiz.tsx index 81dd339..1025ea1 100644 --- a/src/components/quiz.tsx +++ b/src/components/quiz.tsx @@ -45,7 +45,7 @@ export function Quiz() { const visitorIsRejected = Object.values(chosenOptions).some((o) => o === -1); return ( -
+
{visitorIsRejected ? (

You're not eligible for treatment

) : currentIndex === questions.length ? ( diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index e72c2b5..9644796 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -21,7 +21,7 @@ const DialogOverlay = React.forwardRef< ) => (
) => (