remov olden that month filter for violation table
This commit is contained in:
@@ -68,12 +68,6 @@ export default function ViolationsTable() {
|
|||||||
monthAgo.setHours(0, 0, 0, 0);
|
monthAgo.setHours(0, 0, 0, 0);
|
||||||
return { start_date: formatDateTimeForAPI(monthAgo), end_date };
|
return { start_date: formatDateTimeForAPI(monthAgo), end_date };
|
||||||
}
|
}
|
||||||
case 'older': {
|
|
||||||
const monthAgo = new Date(now);
|
|
||||||
monthAgo.setMonth(monthAgo.getMonth() - 1);
|
|
||||||
monthAgo.setHours(0, 0, 0, 0);
|
|
||||||
return { end_date: formatDateTimeForAPI(monthAgo) };
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@@ -366,8 +360,6 @@ export default function ViolationsTable() {
|
|||||||
return t('for-a-week');
|
return t('for-a-week');
|
||||||
case 'month':
|
case 'month':
|
||||||
return t('for-a-month');
|
return t('for-a-month');
|
||||||
case 'older':
|
|
||||||
return t('older-than-a-month');
|
|
||||||
default:
|
default:
|
||||||
return t('today');
|
return t('today');
|
||||||
}
|
}
|
||||||
@@ -378,7 +370,6 @@ export default function ViolationsTable() {
|
|||||||
<li value="today">{t('today')}</li>
|
<li value="today">{t('today')}</li>
|
||||||
<li value="week">{t('for-a-week')}</li>
|
<li value="week">{t('for-a-week')}</li>
|
||||||
<li value="month">{t('for-a-month')}</li>
|
<li value="month">{t('for-a-month')}</li>
|
||||||
<li value="older">{t('older-than-a-month')}</li>
|
|
||||||
</DropDownList>
|
</DropDownList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user