Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
linxin committed Nov 13, 2023
2 parents 838e51a + 0da7524 commit aa0f5cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ const Navs = () => {
return (
<LocaleLink
to={item.value as string}
// @ts-ignore
rawValue={item.rawValue as boolean}
className="hover:text-white"
>
Expand All @@ -208,6 +209,7 @@ const Navs = () => {
</Dropdown>
)}
{nav.children.length === 0 && (
// @ts-ignore
<LocaleLink className="flex items-center hover:text-brand_color" to={nav.value} rawValue={nav.rawValue}>
<span>{nav.label}</span>
{nav.suffix && <span className="ml-2">{nav.suffix}</span>}
Expand Down Expand Up @@ -242,6 +244,7 @@ const Navs = () => {
{expandKeys.includes(String(item.value)) && (
<div className="flex flex-col xl:pl-2">
{item?.children?.map((i: any) => (
// @ts-ignore
<LocaleLink to={i.value as string} rawValue={i.rawValue} key={i.label} className="py-3">
{i.label}
</LocaleLink>
Expand All @@ -250,6 +253,7 @@ const Navs = () => {
)}
</div>
) : (
// @ts-ignore
<LocaleLink to={item.value as string} rawValue={item.rawValue} key={item.label}>
{item.label}
</LocaleLink>
Expand Down

0 comments on commit aa0f5cc

Please sign in to comment.