The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
final touches
Steven Tey89766a861703
diff --git a/apps/web/ui/layout/help/contact-form.tsx b/apps/web/ui/layout/help/contact-form.tsxindex 152fe95080..2367512e30 100644--- a/apps/web/ui/layout/help/contact-form.tsx+++ b/apps/web/ui/layout/help/contact-form.tsx@@ -87,8 +87,8 @@ export function ContactForm({className="-ml-2 flex items-center space-x-1 rounded-md px-2 py-1"onClick={() => setScreen("main")}>- <ChevronLeft className="h-4 w-4" />- <h3 className="font-semibold">Contact support</h3>+ <ChevronLeft className="h-5 w-5" />+ <h3 className="text-lg font-semibold text-gray-700">Contact support</h3></button><AnimatePresence>@@ -117,11 +117,11 @@ export function ContactForm({}).then((res) => res.json());if (res.error) {toast.error(res.error);+ setFormStatus("idle");} else {- toast.success("Message sent!");setData({ message: "", attachmentIds: [] });+ setFormStatus("success");}- setFormStatus("success");}}initial={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -10 }}diff --git a/apps/web/ui/layout/help/main-screen.tsx b/apps/web/ui/layout/help/help-articles.tsxsimilarity index 97%rename from apps/web/ui/layout/help/main-screen.tsxrename to apps/web/ui/layout/help/help-articles.tsxindex 1f186e5c08..8538762710 100644--- a/apps/web/ui/layout/help/main-screen.tsx+++ b/apps/web/ui/layout/help/help-articles.tsx@@ -8,7 +8,7 @@ import Highlighter from "react-highlight-words";import { useDebouncedCallback } from "use-debounce";import { HelpContext } from "./portal";-export function MainScreen({+export function HelpArticles({setScreen,}: {setScreen: Dispatch<SetStateAction<"main" | "contact">>;@@ -23,7 +23,9 @@ export function MainScreen({<div><div className="p-2 sm:p-4"><div className="p-2">- <h3 className="font-semibold">How can we help?</h3>+ <h3 className="text-lg font-semibold text-gray-700">+ 👋 How can we help?+ </h3></div><Command label="help-portal" loop shouldFilter={false}><Command.Inputdiff --git a/apps/web/ui/layout/help/portal.tsx b/apps/web/ui/layout/help/portal.tsxindex cf15a68f1d..d25fc9560a 100644--- a/apps/web/ui/layout/help/portal.tsx+++ b/apps/web/ui/layout/help/portal.tsx@@ -7,7 +7,7 @@ import { XIcon } from "lucide-react";import { createContext, useEffect, useRef, useState } from "react";import { HelpArticle } from ".";import { ContactForm } from "./contact-form";-import { MainScreen } from "./main-screen";+import { HelpArticles } from "./help-articles";export const HelpContext = createContext<{popularHelpArticles: HelpArticle[];@@ -91,7 +91,7 @@ function HelpSection() {transition={{ type: "spring", duration: 0.3 }}><div ref={containerRef}>- {screen === "main" && <MainScreen setScreen={setScreen} />}+ {screen === "main" && <HelpArticles setScreen={setScreen} />}{screen === "contact" && <ContactForm setScreen={setScreen} />}</div></motion.div>