aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-23 07:30:04 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-23 07:30:04 -0700
commite7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0 (patch)
tree4249ebb4305bf6ec28bf54ba9d009494e018bc61 /modern/src/reports
parent85461684eb402d4df62c8b59e0a0f627bd3487c1 (diff)
downloadtrackermap-web-e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0.tar.gz
trackermap-web-e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0.tar.bz2
trackermap-web-e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0.zip
Convert to outline inputs
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/ChartReportPage.js2
-rw-r--r--modern/src/reports/EventReportPage.js2
-rw-r--r--modern/src/reports/SummaryReportPage.js2
-rw-r--r--modern/src/reports/components/ColumnSelect.js2
-rw-r--r--modern/src/reports/components/ReportFilter.js8
5 files changed, 8 insertions, 8 deletions
diff --git a/modern/src/reports/ChartReportPage.js b/modern/src/reports/ChartReportPage.js
index e6c971df..461a6756 100644
--- a/modern/src/reports/ChartReportPage.js
+++ b/modern/src/reports/ChartReportPage.js
@@ -59,7 +59,7 @@ const ChartReportPage = () => {
<PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportChart']}>
<ReportFilter handleSubmit={handleSubmit} showOnly>
<div className={filterClasses.item}>
- <FormControl variant="filled" fullWidth>
+ <FormControl fullWidth>
<InputLabel>{t('reportChartType')}</InputLabel>
<Select value={type} onChange={(e) => setType(e.target.value)}>
{Object.keys(positionAttributes).filter((key) => positionAttributes[key].type === 'number').map((key) => (
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index 2c6aaea5..352a4e13 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -99,7 +99,7 @@ const EventReportPage = () => {
<PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportEvents']}>
<ReportFilter handleSubmit={handleSubmit}>
<div className={classes.item}>
- <FormControl variant="filled" fullWidth>
+ <FormControl fullWidth>
<InputLabel>{t('reportEventTypes')}</InputLabel>
<Select
value={eventTypes}
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js
index 1e905155..511a0e6e 100644
--- a/modern/src/reports/SummaryReportPage.js
+++ b/modern/src/reports/SummaryReportPage.js
@@ -81,7 +81,7 @@ const SummaryReportPage = () => {
<PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportSummary']}>
<ReportFilter handleSubmit={handleSubmit}>
<div className={classes.item}>
- <FormControl variant="filled" fullWidth>
+ <FormControl fullWidth>
<InputLabel>{t('sharedType')}</InputLabel>
<Select value={daily} onChange={(e) => setDaily(e.target.value)}>
<MenuItem value={false}>{t('reportSummary')}</MenuItem>
diff --git a/modern/src/reports/components/ColumnSelect.js b/modern/src/reports/components/ColumnSelect.js
index 04645cd5..543aa7bf 100644
--- a/modern/src/reports/components/ColumnSelect.js
+++ b/modern/src/reports/components/ColumnSelect.js
@@ -13,7 +13,7 @@ const ColumnSelect = ({
return (
<div className={classes.item}>
- <FormControl variant="filled" fullWidth>
+ <FormControl fullWidth>
<InputLabel>{t('sharedColumns')}</InputLabel>
<Select
value={columns}
diff --git a/modern/src/reports/components/ReportFilter.js b/modern/src/reports/components/ReportFilter.js
index 9938a4ad..95502688 100644
--- a/modern/src/reports/components/ReportFilter.js
+++ b/modern/src/reports/components/ReportFilter.js
@@ -90,7 +90,7 @@ const ReportFilter = ({
<div className={classes.filter}>
{!ignoreDevice && (
<div className={classes.item}>
- <FormControl variant="filled" fullWidth>
+ <FormControl fullWidth>
<InputLabel>{t('reportDevice')}</InputLabel>
<Select value={deviceId || ''} onChange={(e) => setDeviceId(e.target.value)}>
{Object.values(devices).map((device) => (
@@ -101,7 +101,7 @@ const ReportFilter = ({
</div>
)}
<div className={classes.item}>
- <FormControl variant="filled" fullWidth>
+ <FormControl fullWidth>
<InputLabel>{t('reportPeriod')}</InputLabel>
<Select value={period} onChange={(e) => setPeriod(e.target.value)}>
<MenuItem value="today">{t('reportToday')}</MenuItem>
@@ -117,7 +117,7 @@ const ReportFilter = ({
{period === 'custom' && (
<div className={classes.item}>
<TextField
- variant="filled"
+
label={t('reportFrom')}
type="datetime-local"
value={from.format(moment.HTML5_FMT.DATETIME_LOCAL)}
@@ -129,7 +129,7 @@ const ReportFilter = ({
{period === 'custom' && (
<div className={classes.item}>
<TextField
- variant="filled"
+
label={t('reportTo')}
type="datetime-local"
value={to.format(moment.HTML5_FMT.DATETIME_LOCAL)}