- {submitStatus === SubmitStatus.SUCCESS ? (
- <>
-
- {dict.uninstallForm.success.title}
-
-
-
-
- {dict.uninstallForm.success.message}
-
-
-
-
- >
- ) : (
- <>
-
- {dict.uninstallForm.title}
-
-
- {dict.uninstallForm.description}
-
-
{dict.uninstallForm.reinstall}
-
- Chrome Web Store
-
-
-
- >
- )}
-
- )
-}
-
-async function submit(
- param: UninstallFormType,
-): Promise<{ success: boolean; error?: string }> {
- try {
- const {
- uninstallReason,
- wantedToUse,
- details,
- locale,
- otherReason,
- otherWantedToUse,
- }: UninstallFormType = param
-
- // Create form data
- const formData = new FormData()
- // 1. wanted to use
- wantedToUse.forEach((feature) => {
- formData.append("entry.1077095346", feature)
- })
- if (otherWantedToUse) {
- formData.append(
- "entry.1077095346.other_option_response",
- otherWantedToUse,
- )
- }
- // 2. uninstall reason
- uninstallReason.forEach((reason) => {
- formData.append("entry.90439598", reason)
- })
- if (otherReason) {
- formData.append("entry.90439598.other_option_response", otherReason)
- }
- // 3. details
- formData.append("entry.2091766235", details)
- // 4. locale
- formData.append("entry.1954317629", locale)
-
- // Send form data to Google Forms
- const formUrl =
- "https://docs.google.com/forms/d/e/1FAIpQLSeKp9yy9i4dB3CK7qyKZoaDdrRB8a6dCVnm0zALl7mo-yvbXg/formResponse"
- fetch(formUrl, {
- method: "POST",
- body: formData,
- mode: "no-cors",
- })
-
- return { success: true }
- } catch (error) {
- console.error("Error processing uninstall form:", error)
- return { success: false, error: "Failed to process form submission" }
- }
-}
diff --git a/packages/hub/src/components/layout/CommandList.module.css b/packages/hub/src/components/layout/CommandList.module.css
deleted file mode 100644
index bfd4b424..00000000
--- a/packages/hub/src/components/layout/CommandList.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.item {
- @apply pb-5;
-}
-
-.item + .item {
- @apply border-t py-5;
-}
diff --git a/packages/hub/src/components/layout/CommandList.tsx b/packages/hub/src/components/layout/CommandList.tsx
deleted file mode 100644
index 9105a183..00000000
--- a/packages/hub/src/components/layout/CommandList.tsx
+++ /dev/null
@@ -1,57 +0,0 @@
-"use client"
-
-import { SortOrder } from "@/components/SortOrder"
-import { ListItem } from "@/components/ListItem"
-import {
- CommandSorterProvider,
- useCommandSorter,
-} from "@/hooks/useCommandSorter"
-import { getCommands } from "@/features/command"
-import { cn, isEmpty } from "@/lib/utils"
-
-import css from "./CommandList.module.css"
-
-type Props = {
- tagName?: string
-}
-
-export function CommandList(props: Props): JSX.Element {
- return (
-