Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Sep 25, 2023
1 parent 7f75c26 commit fa5fef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/useId.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from 'react';
import * as React from "react";

const react18UseId = (React as { useId?: () => string }).useId;

Expand All @@ -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;

0 comments on commit fa5fef7

Please sign in to comment.