Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function NotebookTable({
'notebookUrl',
'name',
'objectOfInterest',
'scale',
];

for (const field of searchFields) {
Expand Down Expand Up @@ -390,7 +391,12 @@ function NotebookTable({
</>

<div id="table-container" className="mt-5">
<Table dataSource={filteredData} columns={filteredColumns} pagination={false} />
<Table
dataSource={filteredData}
columns={filteredColumns}
pagination={false}
locale={{ emptyText: <div className="mt-5 text-lg text-gray-400">No data</div> }}
/>
</div>

<ContentModal notebook={currentNotebook} display={display} onCancel={resetModal} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,14 @@ export default function UserNotebookPage({

return (
<>
<NotebookTable
notebooks={notebooks}
onDelete={(id: string) => setDeleteNotebookId(id)}
projectId={projectId}
vlabId={vlabId}
/>
<div className="mb-[100px]">
<NotebookTable
notebooks={notebooks}
onDelete={(id: string) => setDeleteNotebookId(id)}
projectId={projectId}
vlabId={vlabId}
/>
</div>
<Modal open={openModal} onCancel={resetModal} footer={false} width="35vw">
<div className="p-4">
<div className="text-xl font-bold text-primary-8">Register notebooks</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/FilterControls/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function useFilters<T>(data: T[]) {
onFilterChange(dataIndex, value ?? null, (colValue) => {
if (!value || typeof value !== 'string' || typeof colValue !== 'string') return true;

return colValue.toLocaleLowerCase().includes(value);
return colValue.toLocaleLowerCase().includes(value.toLocaleLowerCase());
});
},
[onFilterChange]
Expand Down
Loading