feat: v2 Table Component
This commit is contained in:
1 parent
01c5456ccf
commit
34961e5624
17 files changed
+304
-98
No files matched your search
@@ -36,6 +36,7 @@ export const Layout = ({ children }) => {
|
||||
onClick={() => setSidebarOpen(false)}
|
||||
/>
|
||||
<div
|
||||
id="main-container"
|
||||
className={classnames('py-10 w-full', {
|
||||
'px-4 lg:px-20': sidebarOpen,
|
||||
'px-4 lg:px-8': !sidebarOpen,
|
||||
|
||||
@@ -31,19 +31,19 @@ export const Sidebar = React.forwardRef((props, ref) => {
|
||||
<div className="block lg:hidden">
|
||||
<div
|
||||
onClick={() => props.onClick()}
|
||||
className="fixed z-10 left-0 w-full h-full bg-black opacity-80"
|
||||
style={{ top: '81px' }}
|
||||
className="fixed left-0 w-full h-full bg-black opacity-80"
|
||||
style={{ top: 81, zIndex: 99999 }}
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
ref={ref}
|
||||
data-testid="sidebar"
|
||||
className={classnames(
|
||||
'p-8 flex-col bg-white top-0 overflow-auto z-10 border-r border-gray-400 hidden fixed left-0 bottom-0 lg:block lg:sticky lg:h-screen lg:top-0'
|
||||
'p-8 flex-col bg-white top-0 overflow-auto border-r border-gray-400 hidden fixed left-0 bottom-0 lg:block lg:sticky lg:h-screen lg:top-0'
|
||||
)}
|
||||
style={{
|
||||
display: props.sidebarOpen ? 'block' : 'none',
|
||||
top: '81px',
|
||||
zIndex: 99999,
|
||||
minWidth: 250,
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user