diff --git a/src/app/(main)/links/LinkEditForm.tsx b/src/app/(main)/links/LinkEditForm.tsx index b9c16996..2bbf78e2 100644 --- a/src/app/(main)/links/LinkEditForm.tsx +++ b/src/app/(main)/links/LinkEditForm.tsx @@ -13,7 +13,7 @@ import { import { useEffect, useState } from 'react'; import { useConfig, useLinkQuery, useMessages } from '@/components/hooks'; import { useUpdateQuery } from '@/components/hooks/queries/useUpdateQuery'; -import { RefreshCw } from '@/components/icons'; +import { ChevronDown, ChevronRight, RefreshCw } from '@/components/icons'; import { LINKS_URL } from '@/lib/constants'; import { getRandomChars } from '@/lib/generate'; import { isValidUrl } from '@/lib/url'; @@ -43,6 +43,7 @@ export function LinkEditForm({ const hostUrl = linksUrl || LINKS_URL; const { data, isLoading } = useLinkQuery(linkId); const [slug, setSlug] = useState(generateId()); + const [showAdvanced, setShowAdvanced] = useState(false); const handleSubmit = async (data: any) => { await mutateAsync(data, { @@ -81,7 +82,17 @@ export function LinkEditForm({ } return ( -
+ {({ setValue }) => { return ( <> @@ -101,28 +112,16 @@ export function LinkEditForm({ - - - - - - - - - - - - - - - +