Skip to content

Commit 379069c

Browse files
added select btn (#1687)
1 parent a925d8a commit 379069c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/containers/MyActivity/formik/activitylayout.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,33 @@ const ActivityLayout = (props) => {
323323
</Taber.Tabs>
324324
<div className="activity-layout-btns">
325325
{/* <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>
326353
</div>
327354
</div>
328355
)}

0 commit comments

Comments
 (0)