File tree Expand file tree Collapse file tree
packages/ui/src/components/editor/panel/modals/CommitMessageModal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,34 +51,35 @@ export const CommitMessageModal: React.FC<Props> = (props) => {
5151 }
5252
5353 return (
54- < Modal
55- title = "Commit changes"
56- content_slot = {
57- < TextareaAutosize
58- className = { styles . textarea }
59- value = { message }
60- onChange = { ( e ) => set_message ( e . target . value ) }
61- minRows = { 2 }
62- onKeyDown = { ( e ) => {
63- if ( e . key == 'Enter' && ( e . metaKey || e . ctrlKey ) ) {
64- e . preventDefault ( )
65- handle_accept ( )
66- }
67- } }
68- onMouseDown = { stop_timer }
69- />
70- }
71- footer_slot = {
72- < >
73- < Button on_click = { props . on_cancel } is_secondary = { true } >
74- Cancel
75- </ Button >
76- < Button on_click = { handle_accept } disabled = { ! message . trim ( ) } >
77- Commit
78- { is_timer_active && countdown > 0 && ` (${ countdown } )` }
79- </ Button >
80- </ >
81- }
82- />
54+ < div onMouseDown = { stop_timer } >
55+ < Modal
56+ title = "Commit changes"
57+ content_slot = {
58+ < TextareaAutosize
59+ className = { styles . textarea }
60+ value = { message }
61+ onChange = { ( e ) => set_message ( e . target . value ) }
62+ minRows = { 2 }
63+ onKeyDown = { ( e ) => {
64+ if ( e . key == 'Enter' && ( e . metaKey || e . ctrlKey ) ) {
65+ e . preventDefault ( )
66+ handle_accept ( )
67+ }
68+ } }
69+ />
70+ }
71+ footer_slot = {
72+ < >
73+ < Button on_click = { props . on_cancel } is_secondary = { true } >
74+ Cancel
75+ </ Button >
76+ < Button on_click = { handle_accept } disabled = { ! message . trim ( ) } >
77+ Commit
78+ { is_timer_active && countdown > 0 && ` (${ countdown } )` }
79+ </ Button >
80+ </ >
81+ }
82+ />
83+ </ div >
8384 )
8485}
You can’t perform that action at this time.
0 commit comments