@@ -9,6 +9,7 @@ const OptionsModal = ({ superState, dispatcher }) => {
99 const [ octave , setOctave ] = useState ( false ) ;
1010 const [ param , setParam ] = useState ( '' ) ;
1111 const [ maxT , setmaxT ] = useState ( '' ) ;
12+ const [ library , setLibrary ] = useState ( '' ) ;
1213 const close = ( ) => {
1314 dispatcher ( { type : T . SET_OPTIONS_MODAL , payload : false } ) ;
1415 dispatcher (
@@ -20,6 +21,7 @@ const OptionsModal = ({ superState, dispatcher }) => {
2021 maxT,
2122 param,
2223 octave,
24+ library,
2325 } ,
2426 } ,
2527 ) ;
@@ -40,6 +42,9 @@ const OptionsModal = ({ superState, dispatcher }) => {
4042 const handleMaxtimeChange = ( e ) => {
4143 setmaxT ( e . target . value ) ;
4244 } ;
45+ const handleLibraryChange = ( e ) => {
46+ setLibrary ( e . target . value ) ;
47+ } ;
4348
4449 const Options = 'Options' ;
4550 return (
@@ -58,7 +63,7 @@ const OptionsModal = ({ superState, dispatcher }) => {
5863 < input type = "checkbox" checked = { unlock } onChange = { handleUnlockChange } />
5964 </ label >
6065 < label htmlFor = "Maxtime" className = "main-div-comp" >
61- Max Time
66+ Max Time:
6267 < input
6368 type = "text"
6469 value = { maxT }
@@ -69,6 +74,20 @@ const OptionsModal = ({ superState, dispatcher }) => {
6974 />
7075 </ label >
7176 < br />
77+ < br />
78+ < span > Library Path: </ span >
79+ < label htmlFor = "librarypath" >
80+ < input
81+ size = "59"
82+ type = "text"
83+ value = { library }
84+ placeholder = "Enter library path"
85+ onChange = { ( e ) => {
86+ handleLibraryChange ( e ) ;
87+ } }
88+ />
89+ </ label >
90+
7291 < br />
7392 < br />
7493 < span > Params:</ span >
@@ -77,7 +96,6 @@ const OptionsModal = ({ superState, dispatcher }) => {
7796 cols = "80"
7897 rows = "10"
7998 value = { param }
80- placeholder = "//Write Script"
8199 onChange = { ( e ) => {
82100 handleParamsChange ( e ) ;
83101 } }
0 commit comments