File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/app/components/elements Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState } from "react" ;
2
2
import { connect , ResolveThunks } from "react-redux" ;
3
- import { Link } from "react-router-dom" ;
4
3
import { sortBy } from "lodash" ;
4
+ import { history } from "../../services/history" ;
5
5
import * as RS from "reactstrap" ;
6
6
7
7
import { RegisteredUserDTO , UserSummaryWithEmailAddressDTO } from "../../../IsaacApiTypes" ;
@@ -65,7 +65,10 @@ export const groupInvitationModal = (firstTime: boolean) => {
65
65
</ RS . Button >
66
66
</ RS . Col >
67
67
< RS . Col >
68
- < RS . Button block key = { 0 } color = "secondary" tag = { Link } to = "/set_assignments" >
68
+ < RS . Button block key = { 0 } color = "secondary" onClick = { ( ) => {
69
+ store . dispatch ( closeActiveModal ( ) ) ;
70
+ history . push ( "/set_assignments" ) ;
71
+ } } >
69
72
Set an assignment
70
73
</ RS . Button >
71
74
</ RS . Col >
You can’t perform that action at this time.
0 commit comments