Filtering via FilterBar.
This commit is contained in:
@@ -3,10 +3,7 @@ import { useApi } from '../useApi';
|
||||
|
||||
const selector = (state: { user: any }) => state.user;
|
||||
|
||||
export function useLoginQuery(): {
|
||||
user: any;
|
||||
setUser: (data: any) => void;
|
||||
} {
|
||||
export function useLoginQuery() {
|
||||
const { post, useQuery } = useApi();
|
||||
const user = useApp(selector);
|
||||
|
||||
|
||||
@@ -27,11 +27,12 @@ export function useDateRange(websiteId?: string) {
|
||||
|
||||
const startDate = new Date(mindate);
|
||||
const endDate = new Date(maxdate);
|
||||
const unit = getMinimumUnit(startDate, endDate);
|
||||
|
||||
dateRange = {
|
||||
startDate,
|
||||
endDate,
|
||||
unit: getMinimumUnit(startDate, endDate),
|
||||
unit,
|
||||
value,
|
||||
};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user