mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Add hotkey ctrl+k for search
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
413188c995
commit
fbeecc0479
5 changed files with 52 additions and 32 deletions
|
|
@ -4,6 +4,8 @@ import './RawModal.scss';
|
|||
|
||||
import Modal from 'react-modal';
|
||||
|
||||
import navigation from '../../../client/state/navigation';
|
||||
|
||||
Modal.setAppElement('#root');
|
||||
|
||||
function RawModal({
|
||||
|
|
@ -23,6 +25,9 @@ function RawModal({
|
|||
default:
|
||||
modalClass += 'raw-modal__small ';
|
||||
}
|
||||
|
||||
navigation.setIsRawModalVisible(isOpen);
|
||||
|
||||
const modalOverlayClass = (overlayClassName !== null) ? `${overlayClassName} ` : '';
|
||||
return (
|
||||
<Modal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue