app/javascript/react/utils/useShortenedLink.ts
Function useShortenedLink
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useShortenedLink = (url: string, accessToken: string) => {
const [shortenedLink, setShortenedLink] = useState<string>(url);
const [error, setError] = useState<Error | null>(null);
useEffect(() => {