mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-08 12:07:27 +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}
|
disabled={disabled}
|
||||||
onClick={() => handleClick('json')}
|
onClick={() => handleClick('json')}
|
||||||
>
|
>
|
||||||
<Typography variant="button" noWrap>{loading ? t('sharedLoading') : t('reportShow')}</Typography>
|
<Typography variant="button" noWrap>{t(loading ? 'sharedLoading' : 'reportShow')}</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<SplitButton
|
<SplitButton
|
||||||
|
Loading…
Reference in New Issue
Block a user