Просмотр исходного кода

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

satnaing 10 месяцев назад
Родитель
Сommit
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',