Skip to content

Commit 4463117

Browse files
authored
Add deprecation banner to top of docs (#1134)
* added deprecation banner * removed endDate to banner
1 parent b7c1671 commit 4463117

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

app/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { aeonik, aeonikFono, aeonikMono, inter } from '@/fonts';
55
import { KeyboardShortcutsProvider } from '@/hooks/use-keyboard-shortcuts';
66
import { ApiCredentialsProvider } from '@/providers/api-credentials-provider';
77
import { QueryProvider } from '@/providers/query-provider';
8+
import { Banner } from '@/components/ui/banner';
89

910
export default function RootLayout({ children }: { children: ReactNode }) {
1011
return (
@@ -14,6 +15,9 @@ export default function RootLayout({ children }: { children: ReactNode }) {
1415
suppressHydrationWarning
1516
>
1617
<body className="flex flex-col min-h-screen" suppressHydrationWarning>
18+
<Banner id="chainhooks-deprecation">
19+
Hosted Chainhooks v1 and L1 APIs (Ordinals, Runes, BRC20) deprecated March 9th, please migrate now!
20+
</Banner>
1721
<QueryProvider>
1822
<ApiCredentialsProvider>
1923
<KeyboardShortcutsProvider>

components/ui/banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const buttonVariants = cva(
2828

2929
export function Banner({
3030
id,
31-
cta = 'Call to Action',
31+
cta,
3232
url = '/',
3333
startDate,
3434
endDate,

tsconfig.tsbuildinfo

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)