Merge pull request 'resolve article translation' (#168) from fix/category-card into develop

Reviewed-on: http://85.143.176.51:3000/free-land/front-end/pulls/168
This commit is contained in:
Daniel Weissmall 2022-10-21 11:41:33 +00:00
commit f17d5f3079

View File

@ -13,7 +13,7 @@ type Props = {
} & Omit<React.ComponentPropsWithoutRef<"div">, "">; } & Omit<React.ComponentPropsWithoutRef<"div">, "">;
function CategoryCard({ count, title, iconChild, className, ...props }: Props) { function CategoryCard({ count, title, iconChild, className, ...props }: Props) {
const [t, i18next] = useTranslation() const [t, i18next] = useTranslation();
const iconChildStyle = const iconChildStyle =
"h-7 fill-gray-500 stroke-gray-500 group-focus:fill-blue-600 group-active:fill-blue-600 group-focus:stroke-blue-600 group-active:stroke-blue-600"; "h-7 fill-gray-500 stroke-gray-500 group-focus:fill-blue-600 group-active:fill-blue-600 group-focus:stroke-blue-600 group-active:stroke-blue-600";
@ -43,7 +43,8 @@ function CategoryCard({ count, title, iconChild, className, ...props }: Props) {
fontWeightVariant="normal" fontWeightVariant="normal"
className="text-xs text-gray-500 group-active:text-blue-600 group-focus:text-blue-600" className="text-xs text-gray-500 group-active:text-blue-600 group-focus:text-blue-600"
> >
{count} {t("mainPage.article", {count: count}).toString()} {count}{" "}
{t("mainPage.article_many", { count: count }).toString()}
</Typography> </Typography>
</div> </div>
</div> </div>