🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor SelectGSCPropertyPageContent for improved code clarity
Bill Yang8dae046c3e96
diff --git a/client/src/app/[site]/gsc/select-property/page.tsx b/client/src/app/[site]/gsc/select-property/page.tsxindex ce7d78880..49b5c2279 100644--- a/client/src/app/[site]/gsc/select-property/page.tsx+++ b/client/src/app/[site]/gsc/select-property/page.tsx@@ -19,10 +19,7 @@ function SelectGSCPropertyPageContent() {const [isSubmitting, setIsSubmitting] = useState(false);// Parse properties from query params- const [properties] = useQueryState(- "properties",- parseAsJson<string[]>((value) => value as string[]).withDefault([])- );+ const [properties] = useQueryState("properties", parseAsJson<string[]>(value => value as string[]).withDefault([]));const handleSubmit = async () => {if (!selectedProperty) {@@ -81,7 +78,7 @@ function SelectGSCPropertyPageContent() {{properties.map(property => (<divkey={property}- className="flex items-center space-x-2 border border-neutral-100 dark:border-neutral-200 rounded-lg p-4 hover:bg-neutral-50 dark:hover:bg-neutral-800/30"+ className="flex items-center space-x-2 border border-neutral-100 dark:border-neutral-750 rounded-lg p-4 hover:bg-neutral-50 dark:hover:bg-neutral-800/30"><RadioGroupItem value={property} id={property} /><Label htmlFor={property} className="flex-1 cursor-pointer">