this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Replace onClick with onClose

+2 -16
+2 -16
src/components/keyboard-shortcuts-help.jsx
··· 30 30 }, 31 31 ); 32 32 33 - const escRef = useHotkeys('esc', onClose, []); 34 - 35 33 return ( 36 34 !!snapStates.showKeyboardShortcutsHelp && ( 37 - <Modal 38 - class="light" 39 - onClick={(e) => { 40 - if (e.target === e.currentTarget) { 41 - onClose(); 42 - } 43 - }} 44 - > 45 - <div 46 - id="keyboard-shortcuts-help-container" 47 - class="sheet" 48 - tabindex="-1" 49 - ref={escRef} 50 - > 35 + <Modal class="light" onClose={onClose}> 36 + <div id="keyboard-shortcuts-help-container" class="sheet" tabindex="-1"> 51 37 <button type="button" class="sheet-close" onClick={onClose}> 52 38 <Icon icon="x" /> 53 39 </button>