diff --git a/astro.config.ts b/astro.config.ts index 6a92460004f..7927b24ae3c 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -214,6 +214,12 @@ export default defineConfig({ "../components/Page.astro": fileURLToPath( new URL("./src/components/overrides/Page.astro", import.meta.url), ), + "./SidebarSublist.astro": fileURLToPath( + new URL( + "./src/components/overrides/SidebarSublist.astro", + import.meta.url, + ), + ), }, }, }, diff --git a/src/components/FeedbackPrompt.tsx b/src/components/FeedbackPrompt.tsx index f705af5b562..9fd2730c048 100644 --- a/src/components/FeedbackPrompt.tsx +++ b/src/components/FeedbackPrompt.tsx @@ -1,6 +1,10 @@ import { useState } from "react"; +import { + MdOutlineThumbUp, + MdOutlineThumbDown, + MdCheckCircleOutline, +} from "react-icons/md"; import { Turnstile } from "@marsidev/react-turnstile"; -import { MdOutlineThumbUp, MdOutlineThumbDown } from "react-icons/md"; import { track } from "~/util/zaraz"; type SetState = React.Dispatch>; @@ -30,26 +34,28 @@ function Buttons({ setOption: SetState<"yes" | "no" | undefined>; }) { return ( - <> +
- +
); } @@ -89,39 +95,65 @@ function Form({ } return ( -
- {questions[option].map(([label, value]) => ( - - ))} + +
+ + {option === "yes" ? "What did you like?" : "What went wrong?"} + +
+ {questions[option].map(([label, value]) => ( + + ))} +
+