refactor: Decompose document and folder views into modular components and hooks, replacing monolithic list/grid implementations.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
|
||||
interface DocumentsListContainerProps {
|
||||
children: React.ReactNode;
|
||||
clearSelection: () => void;
|
||||
}
|
||||
|
||||
const DocumentsListContainer: React.FC<DocumentsListContainerProps> = ({
|
||||
children,
|
||||
clearSelection,
|
||||
}) => {
|
||||
return (
|
||||
<table aria-multiselectable="true">
|
||||
<thead
|
||||
onClick={() => {
|
||||
clearSelection();
|
||||
}}
|
||||
>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>Name</th>
|
||||
<th>Issued</th>
|
||||
<th>Added</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>{children}</tbody>
|
||||
</table>
|
||||
);
|
||||
};
|
||||
|
||||
export default DocumentsListContainer;
|
||||
Reference in New Issue
Block a user