fix translation issue

fixes #1498
pull/1496/head
Mikael Finstad 2023-03-10 13:37:50 +08:00
rodzic 0edb7cf31e
commit fd881553a1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -1,6 +1,5 @@
import React, { memo } from 'react';
import i18n from 'i18next';
import { useTranslation, Trans } from 'react-i18next';
import SetCutpointButton from './components/SetCutpointButton';
@ -26,7 +25,11 @@ const NoFileLoaded = memo(({ mifiLink, currentCutSeg }) => {
</div>
<div style={{ fontSize: '3vmin', color: 'var(--gray11)' }} role="button">
<SimpleModeButton style={{ verticalAlign: 'middle' }} size={16} /> {simpleMode ? i18n.t('to show advanced view') : i18n.t('to show simple view')}
{simpleMode ? (
<Trans><SimpleModeButton style={{ verticalAlign: 'middle' }} size={16} /> to show advanced view</Trans>
) : (
<Trans><SimpleModeButton style={{ verticalAlign: 'middle' }} size={16} /> to show simple view</Trans>
)}
</div>