Fix warning of nested element
This commit is contained in:
parent
db19264188
commit
01139329b5
@ -193,11 +193,11 @@ const BlogCard = ({
|
||||
? skeleton({ widthCls: 'w-28', heightCls: 'h-8' })
|
||||
: 'My Articles'}
|
||||
</h3>
|
||||
<p className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
<div className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
{loading
|
||||
? skeleton({ widthCls: 'w-32', heightCls: 'h-4' })
|
||||
: 'Recent posts'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -148,11 +148,11 @@ const ExternalProjectCard = ({
|
||||
? skeleton({ widthCls: 'w-40', heightCls: 'h-8' })
|
||||
: header}
|
||||
</h3>
|
||||
<p className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
<div className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
{loading
|
||||
? skeleton({ widthCls: 'w-32', heightCls: 'h-4' })
|
||||
: `Showcasing ${externalProjects.length} external projects`}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -154,11 +154,11 @@ const GithubProjectCard = ({
|
||||
? skeleton({ widthCls: 'w-48', heightCls: 'h-8' })
|
||||
: header}
|
||||
</h3>
|
||||
<p className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
<div className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
{loading
|
||||
? skeleton({ widthCls: 'w-32', heightCls: 'h-4' })
|
||||
: `Showcasing ${githubProjects.length} featured repositories`}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -142,11 +142,11 @@ const PublicationCard = ({
|
||||
? skeleton({ widthCls: 'w-40', heightCls: 'h-8' })
|
||||
: 'Publications'}
|
||||
</h3>
|
||||
<p className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
<div className="text-base-content/60 text-xs sm:text-sm mt-1 truncate">
|
||||
{loading
|
||||
? skeleton({ widthCls: 'w-32', heightCls: 'h-4' })
|
||||
: `Showcasing ${publications.length} publications`}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user