Skip to content

Commit

Permalink
chore(reactflow): add components banner
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Nov 7, 2024
1 parent 615d178 commit 73dd7d7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
18 changes: 9 additions & 9 deletions sites/reactflow.dev/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export default {
titleComponent: SidebarTitle,
},
banner: {
// key: 'react-flow-12',
// text: (
// <Link
// className="flex justify-center items-center max-w-xs mx-auto hover:underline"
// href="/learn/troubleshooting/migrate-to-v12"
// >
// 🔥 React Flow 12 is here! SSR, dark mode, computing flows, and
// </Link>
// ),
key: 'components',
content: (
<Link
className="flex justify-center items-center max-w-xs mx-auto hover:underline"
href="/components"
>
🔥 We just released React Flow Components powered by shadcn CLI
</Link>
),
},
navbar: {
component: (props) => {
Expand Down
40 changes: 20 additions & 20 deletions sites/svelteflow.dev/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ export default {
forcedTheme: 'light',
defaultTheme: 'light',
},
banner: {
key: 'whats-new',
text: (
<Link
className="flex justify-center items-center max-w-xs mx-auto hover:underline"
href="/whats-new"
>
<Image
alt=""
width={15}
height={25}
src="/img/svelte-logo.svg"
className="mr-2"
/>
<span>
Svelte Flow is still alpha! Check out the latest changes here.
</span>
</Link>
),
},
// banner: {
// key: 'whats-new',
// content: (
// <Link
// className="flex justify-center items-center max-w-xs mx-auto hover:underline"
// href="/whats-new"
// >
// <Image
// alt=""
// width={15}
// height={25}
// src="/img/svelte-logo.svg"
// className="mr-2"
// />
// <span>
// Svelte Flow is still alpha! Check out the latest changes here.
// </span>
// </Link>
// ),
// },
sidebar: {
toggleButton: false,
},
Expand Down
2 changes: 1 addition & 1 deletion sites/xyflow.com/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
},
banner: {
// key: 'react-flow12',
// text: (
// content: (
// <Link
// className="flex justify-center items-center max-w-xs mx-auto hover:underline"
// href="https://reactflow.dev/learn/troubleshooting/migrate-to-v12"
Expand Down

0 comments on commit 73dd7d7

Please sign in to comment.