added react-virtuloso and tenstack-table
This commit is contained in:
parent
3a9d45c543
commit
8e01d523d0
8 changed files with 161 additions and 227 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { useState, ReactNode } from 'react';
|
||||
import { Sidebar } from './Sidebar';
|
||||
import { ReactNode, useState } from 'react';
|
||||
import { Header } from './Header';
|
||||
import { Sidebar } from './Sidebar';
|
||||
|
||||
interface LayoutProps {
|
||||
children: ReactNode;
|
||||
|
|
@ -15,8 +15,8 @@ export function Layout({ children, title }: LayoutProps) {
|
|||
<Sidebar sidebarOpen={sidebarOpen} setSidebarOpen={setSidebarOpen} />
|
||||
<Header setSidebarOpen={setSidebarOpen} title={title} />
|
||||
|
||||
<main className="py-4 lg:pl-60 w-full">
|
||||
<div className="px-4">{children}</div>
|
||||
<main className="py-4 lg:pl-60 w-full h-full overflow-y-auto scrollbar-sleek">
|
||||
<div className="px-4 flex-col h-full">{children}</div>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue