fix news button translation
This commit is contained in:
@@ -6,7 +6,13 @@ import Icon, { IconType } from "./Icon";
|
|||||||
const ChangeLanguageButton: React.FC = (props) => {
|
const ChangeLanguageButton: React.FC = (props) => {
|
||||||
const { language, changeLanguage } = i18nNext.i18n;
|
const { language, changeLanguage } = i18nNext.i18n;
|
||||||
return (
|
return (
|
||||||
<button {...props} type="button" onClick={() => changeLanguage(language === "fi" ? "en" : "fi")}>
|
<button
|
||||||
|
{...props}
|
||||||
|
type="button"
|
||||||
|
onClick={() => {
|
||||||
|
changeLanguage(language === "fi" ? "en" : "fi");
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Icon name={language === "fi" ? IconType.GBFlag : IconType.FinlandFlag} />
|
<Icon name={language === "fi" ? IconType.GBFlag : IconType.FinlandFlag} />
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const News: React.FC<NewsProps> = ({ feed }) => {
|
|||||||
text={post.description}
|
text={post.description}
|
||||||
link={`/feed/${post.id}`}
|
link={`/feed/${post.id}`}
|
||||||
buttonOnClick={noop}
|
buttonOnClick={noop}
|
||||||
buttonText={t("Lue lisää ›")}
|
buttonText={`${t("Lue lisää")} ›`}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</CardSection>
|
</CardSection>
|
||||||
|
|||||||
Reference in New Issue
Block a user