diff --git a/app/login/page.tsx b/app/login/page.tsx
index 2617308..964666e 100644
--- a/app/login/page.tsx
+++ b/app/login/page.tsx
@@ -14,7 +14,7 @@ export default async function Login({ searchParams }: { searchParams: Promise<{
const error = (await searchParams).error;
// Automatically sign in if the `token` search parameter is set.
- if (token) return redirect(`/login-handler?token=${token}`)
+ if (token) return redirect(`/login-handler?token=${encodeURIComponent(token)}`)
return (
diff --git a/components/AnimatedListbox.tsx b/components/AnimatedListbox.tsx
index 76a29eb..1b7dc6b 100644
--- a/components/AnimatedListbox.tsx
+++ b/components/AnimatedListbox.tsx
@@ -1,24 +1,23 @@
'use client'
-import { Fragment, ReactNode } from 'react';
-import { Listbox, Transition } from '@headlessui/react';
+import type { ReactNode } from 'react';
+import { ListboxOptions } from '@headlessui/react';
-// A reusable component to wrap a dropdown animation around a `Listbox.Options`.
-export default function AnimatedListbox(props: { children: ReactNode, className?: string }) {
+// A reusable component to wrap a dropdown animation around a `ListboxOptions`.
+type AnimatedListboxProps = {
+ children: ReactNode,
+ modal?: boolean,
+ className?: string
+}
+export default function AnimatedListbox(props: AnimatedListboxProps) {
return (
-
-
- {props.children}
-
-
+ {props.children}
+
)
}