mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
* Demo api side panel * Add docs for storage and edge functions * Add content * fix * Add scroll to logic * Add storage docs * Add docs URLs * Add connecting to project section in getting started * Link back to docs site for product + resource specific docs * Add entry points into API side panel for table editor, auth users and storage * Add entry points into API side panel for edge functions * Beef up feature preview modal with content * Fix asset path * Address several feedback * Addressing more feedback * Shift GraphiQL page to database if new api docs flag enabled * Spelling * Wording changes * Spacing and wording * Fix small issues * Fix * Update key showing toggle button --------- Co-authored-by: Terry Sutton <saltcod@gmail.com>
7 lines
195 B
TypeScript
7 lines
195 B
TypeScript
export const navigateToSection = (key: string) => {
|
|
if (typeof window !== 'undefined') {
|
|
const el = document.getElementById(key)
|
|
if (el) el.scrollIntoView({ behavior: 'smooth' })
|
|
}
|
|
}
|