File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
src/containers/MyActivity/formik Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,33 @@ const ActivityLayout = (props) => {
323
323
</ Taber . Tabs >
324
324
< div className = "activity-layout-btns" >
325
325
{ /* <Buttons text="Cancel" secondary={true} width="153px" height="36px" onClick={() => changeScreenHandler('')} hover={true} /> */ }
326
+ < div className = "btns-margin" >
327
+ < Buttons
328
+ text = "Select"
329
+ defaultgrey = { ! layout }
330
+ width = "91px"
331
+ height = "32px"
332
+ disabled = { ! layout }
333
+ onClick = { ( ) => {
334
+ if ( layout . title === "Interactive Video" ) {
335
+ changeScreenHandler ( "addvideo" ) ;
336
+ } else if (
337
+ layout . title === "Course Presentation"
338
+ ) {
339
+ changeScreenHandler ( "coursepresentation" ) ;
340
+ } else {
341
+ changeScreenHandler ( "addactivity" ) ;
342
+ }
343
+
344
+ dispatch ( {
345
+ type : actionTypes . SET_SELECTED_ACTIVITY ,
346
+ payload : layout ,
347
+ // screenSelectionType: screenSelectionType || '',
348
+ } ) ;
349
+ } }
350
+ hover
351
+ />
352
+ </ div >
326
353
</ div >
327
354
</ div >
328
355
) }
You can’t perform that action at this time.
0 commit comments