mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
docs: add new LegacyApiKeys component
This commit is contained in:
1 parent
a639ca79a4
commit
30472c7fc5
3 files changed
+40
No files matched your search
@@ -0,0 +1,36 @@
|
||||
import {
|
||||
TooltipProvider_Shadcn_,
|
||||
Tooltip_Shadcn_,
|
||||
TooltipTrigger_Shadcn_,
|
||||
TooltipContent_Shadcn_,
|
||||
} from 'ui'
|
||||
|
||||
interface LegacyApiKeysProps {
|
||||
keyword: string
|
||||
type: 'anon' | 'secret'
|
||||
}
|
||||
|
||||
export default function LegacyApiKeys({ keyword, type }: LegacyApiKeysProps) {
|
||||
return (
|
||||
<>
|
||||
<TooltipProvider_Shadcn_>
|
||||
<Tooltip_Shadcn_>
|
||||
<TooltipTrigger_Shadcn_>
|
||||
<code>{keyword}</code>
|
||||
</TooltipTrigger_Shadcn_>
|
||||
<TooltipContent_Shadcn_ className="text-sm">
|
||||
{type === 'anon' ? (
|
||||
<p>
|
||||
equivalent to the <code>anon</code> key
|
||||
</p>
|
||||
) : (
|
||||
<p>
|
||||
equivalent to the <code>secret</code> key
|
||||
</p>
|
||||
)}
|
||||
</TooltipContent_Shadcn_>
|
||||
</Tooltip_Shadcn_>
|
||||
</TooltipProvider_Shadcn_>
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -80,6 +80,7 @@ import { AuthSmsProviderConfig } from './AuthSmsProviderConfig'
|
||||
import { Extensions } from './Extensions'
|
||||
import { JwtGenerator } from './JwtGenerator'
|
||||
import { RealtimeLimitsEstimator } from './RealtimeLimitsEstimator'
|
||||
import LegacyApiKeys from './LegacyApiKeys'
|
||||
|
||||
const components = {
|
||||
...markdownComponents,
|
||||
@@ -147,6 +148,7 @@ const components = {
|
||||
Image: (props: any) => <Image fill className="object-contain" {...props} />,
|
||||
JwtGenerator,
|
||||
KotlinProjectSetup,
|
||||
LegacyApiKeys,
|
||||
Link,
|
||||
MigrationWarnings,
|
||||
NavData,
|
||||
|
||||
@@ -13,6 +13,7 @@ import { CostWarning } from '~/components/AuthSmsProviderConfig/AuthSmsProviderC
|
||||
import ButtonCard from '~/components/ButtonCard'
|
||||
import { Extensions } from '~/components/Extensions'
|
||||
import { JwtGenerator } from '~/components/JwtGenerator'
|
||||
import LegacyApiKeys from '~/components/LegacyApiKeys'
|
||||
import {
|
||||
AuthErrorCodesTable,
|
||||
AuthRateLimits,
|
||||
@@ -68,6 +69,7 @@ const components = {
|
||||
Image: (props: any) => <Image fill className="object-contain" {...props} />,
|
||||
JwtGenerator,
|
||||
KotlinProjectSetup,
|
||||
LegacyApiKeys,
|
||||
Link,
|
||||
MigrationWarnings,
|
||||
NavData,
|
||||
|
||||
Reference in new issue
Block a user