From fa5fef7b29fd21b71a08e2da3ed4c14947634b91 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Mon, 25 Sep 2023 20:26:51 +0200 Subject: [PATCH] Appease the linter --- src/utils/useId.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/useId.ts b/src/utils/useId.ts index a2eeffee..4c9cde6d 100644 --- a/src/utils/useId.ts +++ b/src/utils/useId.ts @@ -1,4 +1,4 @@ -import * as React from 'react'; +import * as React from "react"; const react18UseId = (React as { useId?: () => string }).useId; @@ -11,6 +11,6 @@ const useIdPonyFill = (): string => { return React.useMemo(getUniqueId, []); }; -const useId = (typeof react18UseId === "function") ? react18UseId : useIdPonyFill; +const useId = typeof react18UseId === "function" ? react18UseId : useIdPonyFill; export default useId;