publish: pass invites as prop correctly

Due to a change in a local variable named 'props' we overwrote the only
thing that used the props variable to pass itself to a child -- invites.
This commit deconstructs 'invites' alongside other properties from
the global store.
This commit is contained in:
Matilde Park 2020-07-27 14:54:59 -04:00
parent f32dba17db
commit 20709d9b08

View File

@ -65,7 +65,7 @@ export default class PublishApp extends React.Component {
this.unreadTotal = unreadTotal;
}
const { api, groups, sidebarShown } = props;
const { api, groups, sidebarShown, invites } = props;
return (
<Switch>
@ -77,7 +77,7 @@ export default class PublishApp extends React.Component {
active={'sidebar'}
rightPanelHide={true}
sidebarShown={true}
invites={props.invites}
invites={invites}
notebooks={notebooks}
associations={associations}
selectedGroups={selectedGroups}
@ -108,7 +108,7 @@ export default class PublishApp extends React.Component {
active={'rightPanel'}
rightPanelHide={false}
sidebarShown={sidebarShown}
invites={props.invites}
invites={invites}
notebooks={notebooks}
associations={associations}
selectedGroups={selectedGroups}
@ -139,7 +139,7 @@ export default class PublishApp extends React.Component {
active={'rightPanel'}
rightPanelHide={false}
sidebarShown={sidebarShown}
invites={props.invites}
invites={invites}
notebooks={notebooks}
associations={associations}
selectedGroups={selectedGroups}
@ -185,7 +185,7 @@ export default class PublishApp extends React.Component {
active={'rightPanel'}
rightPanelHide={false}
sidebarShown={sidebarShown}
invites={props.invites}
invites={invites}
notebooks={notebooks}
associations={associations}
selectedGroups={selectedGroups}
@ -211,7 +211,7 @@ export default class PublishApp extends React.Component {
active={'rightPanel'}
rightPanelHide={false}
sidebarShown={sidebarShown}
invites={props.invites}
invites={invites}
notebooks={notebooks}
associations={associations}
contacts={contacts}
@ -263,7 +263,7 @@ export default class PublishApp extends React.Component {
active={'rightPanel'}
rightPanelHide={false}
sidebarShown={sidebarShown}
invites={props.invites}
invites={invites}
notebooks={notebooks}
selectedGroups={selectedGroups}
associations={associations}
@ -290,7 +290,7 @@ export default class PublishApp extends React.Component {
active={'rightPanel'}
rightPanelHide={false}
sidebarShown={sidebarShown}
invites={props.invites}
invites={invites}
notebooks={notebooks}
associations={associations}
selectedGroups={selectedGroups}