Add search modal (#132)

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-10 17:22:53 +05:30
parent 20443f8a4d
commit c9ec161ccc
10 changed files with 348 additions and 7 deletions

View file

@ -103,6 +103,12 @@ class Navigation extends EventEmitter {
action.body,
);
},
[cons.actions.navigation.OPEN_SEARCH]: () => {
this.emit(
cons.events.navigation.SEARCH_OPENED,
action.term,
);
},
};
actions[action.type]?.();
}