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);
|
||||
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:
|
||||
return {};
|
||||
}
|
||||
@@ -366,8 +360,6 @@ export default function ViolationsTable() {
|
||||
return t('for-a-week');
|
||||
case 'month':
|
||||
return t('for-a-month');
|
||||
case 'older':
|
||||
return t('older-than-a-month');
|
||||
default:
|
||||
return t('today');
|
||||
}
|
||||
@@ -378,7 +370,6 @@ export default function ViolationsTable() {
|
||||
<li value="today">{t('today')}</li>
|
||||
<li value="week">{t('for-a-week')}</li>
|
||||
<li value="month">{t('for-a-month')}</li>
|
||||
<li value="older">{t('older-than-a-month')}</li>
|
||||
</DropDownList>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user