Skip to content

Commit

Permalink
added skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
skull8888888 committed Dec 27, 2024
1 parent 7d84d0a commit 0a41982
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/components/dataset/dataset-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,15 @@ export default function DatasetPanel({
setNewMetadata(datapoint.metadata);
}, [datapoint]);

return isLoading ? (<div>Loading...</div>) : (
return isLoading ? (<div className='p-4 space-y-2 h-full w-full'>
<Skeleton className="h-8" />
<Skeleton className="h-8" />
<Skeleton className="h-8" />
</div>) : (
<div className="flex flex-col h-full w-full">
<div className="h-12 flex flex-none space-x-2 px-3 items-center border-b">
<Button
variant={'ghost'}
variant='ghost'
className="px-1"
onClick={async () => {
await saveChanges();
Expand Down

0 comments on commit 0a41982

Please sign in to comment.