Updated component library build.

This commit is contained in:
Mike Cao 2023-08-23 12:50:18 -07:00
parent 280f6a9113
commit 89db57a380
14 changed files with 146 additions and 99 deletions

View file

@ -12,14 +12,12 @@ export function WebsiteDateFilter({ websiteId }) {
const isFutureDate =
value !== 'all' && isAfter(incrementDateRange(dateRange, -1).startDate, new Date());
const handleChange = async value => {
const handleChange = value => {
setDateRange(value);
};
const handleIncrement = async value => {
const newValue = incrementDateRange(dateRange, value);
setDateRange(newValue);
const handleIncrement = value => {
setDateRange(incrementDateRange(dateRange, value));
};
return (