mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-07 03:26:42 +08:00
Update src/reports/components/ReportFilter.jsx
Define translation conditionally Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
This commit is contained in:
parent
aff58bcda9
commit
5e0d2356cc
@ -186,7 +186,7 @@ const ReportFilter = ({
|
||||
disabled={disabled}
|
||||
onClick={() => handleClick('json')}
|
||||
>
|
||||
<Typography variant="button" noWrap>{loading ? t('sharedLoading') : t('reportShow')}</Typography>
|
||||
<Typography variant="button" noWrap>{t(loading ? 'sharedLoading' : 'reportShow')}</Typography>
|
||||
</Button>
|
||||
) : (
|
||||
<SplitButton
|
||||
|
Loading…
Reference in New Issue
Block a user