瀏覽代碼

refactor: change SidebarInset component from 'main' to 'div'

satnaing 10 月之前
父節點
當前提交
15babd3f5f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/ui/sidebar.tsx

+ 2 - 2
src/components/ui/sidebar.tsx

@@ -306,9 +306,9 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {
   )
 }
 
-function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {
+function SidebarInset({ className, ...props }: React.ComponentProps<'div'>) {
   return (
-    <main
+    <div
       data-slot='sidebar-inset'
       className={cn(
         'bg-background relative flex w-full flex-1 flex-col',