Skip to content

Commit

Permalink
fix(theme-default): unocss errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Flower-F committed Oct 10, 2022
1 parent ec12c20 commit 3d863aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/theme-default/components/HomeFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function HomeFeature() {
{icon}
</div>
<h2 font="bold">{title}</h2>
<p pt="2" text="sm text-2" font="medium" leading-6>
<p pt="2" text="sm text-2" font="medium" leading-6="">
{details}
</p>
</article>
Expand Down
2 changes: 1 addition & 1 deletion src/theme-default/components/HomeFooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function Footer() {
<footer
p="y-8 x-6 sm:8"
bg="bg-default"
relative
relative=""
border="t-1 b-0 solid divider-light"
>
<div m="auto" w="100%" text="center">
Expand Down
6 changes: 3 additions & 3 deletions src/theme-default/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const NavBarTitle = ({ title }: { title: string }) => {
const NavMenu = ({ menuItems }: { menuItems: DefaultTheme.NavItem[] }) => {
return (
<div className="menu">
{menuItems.map((item) =>
{menuItems.map((item, index) =>
'link' in item ? (
<NavMenuSingleItem {...item} />
<NavMenuSingleItem key={index} {...item} />
) : (
<div m="x-3" last="mr-0">
<div m="x-3" last="mr-0" key={index}>
<NavMenuGroup {...item} />
</div>
)
Expand Down

0 comments on commit 3d863aa

Please sign in to comment.