-
Sort By
+
Sort By:
sortBy(value as string)}
/>
diff --git a/src/components/elements/select-list.tsx b/src/components/elements/select-list.tsx
index df1f51bd..56e9b765 100644
--- a/src/components/elements/select-list.tsx
+++ b/src/components/elements/select-list.tsx
@@ -15,7 +15,6 @@ import {
useState
} from "react";
import {ChevronDownIcon} from "@heroicons/react/20/solid";
-import {useIsClient} from "usehooks-ts";
import {Maybe} from "@lib/gql/__generated__/drupal.d";
import {twMerge} from "tailwind-merge";
import {clsx} from "clsx";
@@ -97,6 +96,7 @@ type Props = {
emptyValue?: Maybe
emptyLabel?: Maybe
name?: Maybe
+ borderless?: boolean
}
const SelectList = ({
@@ -109,6 +109,7 @@ const SelectList = ({
name,
emptyValue,
emptyLabel = "- None -",
+ borderless = false,
...props
}: Props) => {
const labelId = useId();
@@ -118,7 +119,6 @@ const SelectList = ({
const inputRef = useRef(null);
const listboxRef = useRef(null);
const [listboxVisible, setListboxVisible] = useState(false);
- const isClient = useIsClient()
const {getButtonProps, getListboxProps, contextValue, value} = useSelect({
listboxRef,
@@ -143,14 +143,11 @@ const SelectList = ({
const optionChosen = (multiple && value) ? value.length > 0 : !!value;
- // With Mui and Next.js 14, an error occurs on the server rendering. To avoid that issue, only render the component on the client.
- if (!isClient) return null;
-
return (