mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Move date range selection into redux.
This commit is contained in:
parent
d06c077019
commit
c5cb19a3bf
21 changed files with 141 additions and 138 deletions
|
|
@ -20,10 +20,12 @@ export default function DropDown({
|
|||
setShowMenu(state => !state);
|
||||
}
|
||||
|
||||
function handleSelect(value, e) {
|
||||
function handleSelect(selected, e) {
|
||||
e.stopPropagation();
|
||||
setShowMenu(false);
|
||||
onChange(value);
|
||||
if (selected !== value) {
|
||||
onChange(selected);
|
||||
}
|
||||
}
|
||||
|
||||
useDocumentClick(e => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue