this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Replace Button with Link using buttonVariants in chat sidebar header (#13)

Replaces the `Button` component wrapping a `Link` in the chat sidebar header with a plain `Link` styled using `buttonVariants()`, removing the need for a render prop pattern.

authored by

James Blair and committed by
GitHub
4ca41cc7 019fc428

+4 -2
+4 -2
apps/web/src/components/chat-sidebar-header.tsx
··· 2 2 import { Heading } from "./heading"; 3 3 import { Stack } from "./layout"; 4 4 import { Logo } from "./logo"; 5 - import { Button } from "./ui/button"; 5 + import { buttonVariants } from "./ui/button"; 6 6 import { SidebarHeader } from "./ui/sidebar"; 7 7 8 8 export function ChatSidebarHeader() { ··· 15 15 </Link> 16 16 </Heading> 17 17 18 - <Button render={<Link to="/chats" />}>New Chat</Button> 18 + <Link to="/chats" className={buttonVariants()}> 19 + New Chat 20 + </Link> 19 21 </Stack> 20 22 </SidebarHeader> 21 23 );