Skip to content

Commit

Permalink
feat: improve loading skeleton for chat
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-hng committed Jul 11, 2023
1 parent 6d588d0 commit 42f3f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/modules/[id]/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const ModulesEditPage: NextPage = () => {
enabled: !!router.query.id,
});

if (!moduleQuery.isSuccess || !moduleQuery.data) {
if (!moduleQuery.data) {
return (
<div className="pt-20">
<Section className="space-y-8">
<div>
<h1 className="skeleton mb-2 w-80 text-4xl" />
<p className="skeleton w-80 animate-pulse" />
<div className="skeleton mb-2 w-96 max-w-full text-4xl" />
<div className="skeleton mb-4 w-16" />
</div>
</Section>
</div>
Expand Down

1 comment on commit 42f3f8f

@vercel
Copy link

@vercel vercel bot commented on 42f3f8f Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.