Switch to vercel's biome setup (#543)
This commit is contained in:
parent
b8643353c0
commit
43aa1c6e58
52 changed files with 414 additions and 201 deletions
|
|
@ -18,6 +18,7 @@ import {
|
|||
useSidebar,
|
||||
} from '@/components/ui/sidebar';
|
||||
import { BetterTooltip } from '@/components/ui/tooltip';
|
||||
import Link from 'next/link';
|
||||
|
||||
export function AppSidebar({ user }: { user: User | undefined }) {
|
||||
const router = useRouter();
|
||||
|
|
@ -28,21 +29,21 @@ export function AppSidebar({ user }: { user: User | undefined }) {
|
|||
<SidebarHeader>
|
||||
<SidebarMenu>
|
||||
<div className="flex flex-row justify-between items-center">
|
||||
<div
|
||||
<Link
|
||||
href="/"
|
||||
onClick={() => {
|
||||
setOpenMobile(false);
|
||||
router.push('/');
|
||||
router.refresh();
|
||||
}}
|
||||
className="flex flex-row gap-3 items-center"
|
||||
>
|
||||
<span className="text-lg font-semibold px-2 hover:bg-muted rounded-md cursor-pointer">
|
||||
Chatbot
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
<BetterTooltip content="New Chat" align="start">
|
||||
<Button
|
||||
variant="ghost"
|
||||
type="button"
|
||||
className="p-2 h-fit"
|
||||
onClick={() => {
|
||||
setOpenMobile(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue