mirror of
https://github.com/supabase/supabase.git
synced 2026-06-02 10:55:11 +08:00
feat: new docs ia (#29364)
New Docs IA, mainly splitting up the miscellaneous bucket that is Platform into multiple sections
This commit is contained in:
@@ -34,8 +34,15 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any
|
||||
const activeItemRef = useRef<HTMLLIElement>(null)
|
||||
|
||||
const LinkContainer = (props) => {
|
||||
const isExternal = props.url.startsWith('https://')
|
||||
|
||||
return (
|
||||
<Link href={props.url} className={props.className}>
|
||||
<Link
|
||||
href={props.url}
|
||||
className={props.className}
|
||||
target={isExternal ? '_blank' : undefined}
|
||||
rel={isExternal ? 'noopener noreferrer' : undefined}
|
||||
>
|
||||
{props.children}
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user