nicolium: improve current lang display

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-28 14:41:33 +01:00
parent 75a892e7c5
commit d91c3fbadc

View File

@@ -19,7 +19,7 @@ const messages = defineMessages({
});
interface IStatusLanguagePicker {
status: Pick<Status, 'id' | 'content_map'>;
status: Pick<Status, 'id' | 'content_map' | 'language'>;
showLabel?: boolean;
}
@@ -44,7 +44,7 @@ const StatusLanguagePicker: React.FC<IStatusLanguagePicker> = React.memo(
action: () => {
setStatusLanguage(status.id, language);
},
active: language === currentLanguage,
active: language === (currentLanguage || status.language),
}))}
>
<button title={intl.formatMessage(messages.languageVersions)} className='hover:underline'>