Skip to content

Commit 2cb0d25

Browse files
committed
fix notification link
1 parent 0502f8e commit 2cb0d25

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/components/Action.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import MuiAlert from '@material-ui/lab/Alert';
77
import { firebase } from '../firebase';
88
import Form from './Form';
99

10-
export default function Action({ open, snapshot, input, output, component, trigger, onClose }) {
10+
export default function Action({ open, snapshot, input, output, component, trigger, match, onClose }) {
1111

1212
const [ state, setStateRaw ] = useState({
1313
dialog: {
@@ -67,6 +67,7 @@ export default function Action({ open, snapshot, input, output, component, trigg
6767

6868
context = {
6969
...context,
70+
match,
7071
snapshot,
7172
data: snapshot.data(),
7273
firestore: firebase.firestore

src/components/Button.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function Button({ match, snapshot, text, action, href, disabled,
2323
<Action
2424
open={actionOpen}
2525
snapshot={snapshot}
26+
match={match}
2627
input={action.input}
2728
output={action.output}
2829
onClose={handleClose} />

src/components/Generic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export function parseProps(props, context) {
5050
const newProps = {};
5151

5252
context = {
53+
window,
5354
user: {
5455
...auth.currentUser,
5556
...auth.currentUser && auth.currentUser.isAnonymous && {

0 commit comments

Comments
 (0)