refactor: code cleanup

This commit is contained in:
saicaca authored and saica.go committed 2024-02-18 18:26:40 +08:00
1 parent 3cd21c2da9
commit af29b9160f
51 files changed
+872 -2264

No files matched your search

+7 -1
View File
@@ -22,6 +22,12 @@ interface Props {
<WidgetLayout name={i18n(I18nKey.categories)} id="categories" isCollapsed={isCollapsed} collapsedHeight={COLLAPSED_HEIGHT}>
{categories.map((c) =>
<ButtonLink url={getCategoryUrl(c.name)} badge={c.count} label=`View all posts in the ${c.name} category`>{c.name}</ButtonLink>
<ButtonLink
url={getCategoryUrl(c.name)}
badge={c.count}
label=`View all posts in the ${c.name} category`
>
{c.name}
</ButtonLink>
)}
</WidgetLayout>