소스 검색

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',