mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Context More housekeeping - deprecates the old Table component in favor of the Table component under `ui` JFYI also realised as part of this that the following 2 routes are unreachable from the dashboard and hence am opting to deprecate them with a redirect - /logs/explorer/recent - /logs/explorer/saved ## Areas affected to check - [ ] Integrations -> Webhooks <img width="600" alt="image" src="https://github.com/user-attachments/assets/58523cdb-6219-49be-9d2f-5bc26ae03d7f" /> - [ ] Database -> Column Privileges <img width="600" alt="image" src="https://github.com/user-attachments/assets/98bea654-24ac-4646-9c65-5bc4f18565e9" /> - [ ] Observability -> API <img width="600" alt="image" src="https://github.com/user-attachments/assets/a6512c6f-bd04-4d25-8e3c-99c85883434a" /> - [ ] Observability -> Storage - Its a table under "Request caching" which I don't have data for 😅 🙏 - [ ] Observability -> Database <img width="600" alt="image" src="https://github.com/user-attachments/assets/4f0ba203-64b3-41f7-971e-974e232bdedd" /> - [ ] Table Editor -> Project API Docs -> Column list <img width="600" alt="image" src="https://github.com/user-attachments/assets/6358e7a8-5770-46f9-a5a2-4851855ae97f" /> - [ ] Table Editor -> Project API Docs -> RPC parameters list <img width="600" alt="image" src="https://github.com/user-attachments/assets/5e45a1d6-cd29-451c-bf00-5d806ef37cec" />
25 lines
718 B
TypeScript
25 lines
718 B
TypeScript
import { ReactNode } from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
interface DocSectionProps {
|
|
title: ReactNode
|
|
id?: string
|
|
content: ReactNode
|
|
snippets?: ReactNode
|
|
className?: string
|
|
}
|
|
|
|
export const DocSection = ({ title, id, content, snippets, className }: DocSectionProps) => {
|
|
return (
|
|
<div className={cn('grid grid-cols-1 lg:grid-cols-2 border-b', className)} id={id}>
|
|
<article className="text-foreground-light prose prose-sm p-6 lg:py-10 lg:pr-10 flex-1">
|
|
{title && <h2 className="heading-subTitle mb-4">{title}</h2>}
|
|
{content}
|
|
</article>
|
|
<article className={cn('bg flex-1 lg:border-l space-y-6 px-6 pb-6 lg:py-10')}>
|
|
{snippets}
|
|
</article>
|
|
</div>
|
|
)
|
|
}
|