Skip to content
Snippets Groups Projects
Commit 9b9ea229 authored by Tony Salomone's avatar Tony Salomone
Browse files

Add a default message to blank local datasets tab.

parent 4c7e9ace
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,17 @@ import {
Sheet,
CircularProgress,
FormLabel,
Typography
} from '@mui/joy';
import { PlusIcon } from 'lucide-react';
import DatasetCard from './DatasetCard';
import { SearchIcon } from 'lucide-react';
import { filterByFilters } from 'renderer/lib/utils';
import {
PlusIcon,
SearchIcon,
StoreIcon,
} from 'lucide-react';
import { Link as ReactRouterLink } from 'react-router-dom';
import * as chatAPI from '../../lib/transformerlab-api-sdk';
import DatasetCard from './DatasetCard';
import NewDatasetModal from './NewDatasetModal';
const fetcher = (url) => fetch(url).then((res) => res.json());
......@@ -123,6 +127,22 @@ export default function LocalDatasets() {
/>
</Grid>
))}
{data?.length === 0 && (
<Typography
level="body-lg"
justifyContent="center"
margin={5}
>
You do not have any datasets on your local machine. You can
download a dataset by going to the{' '}
<ReactRouterLink to="/data">
<StoreIcon />
Dataset Store
</ReactRouterLink>
.
</Typography>
)}
</Grid>
</Sheet>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment