High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix routes not remounting with keys
Kailash Nadhae2ca2cb5d22
diff --git a/frontend/my/src/Layout.js b/frontend/my/src/Layout.jsindex 17e2a72f..82dbe974 100644--- a/frontend/my/src/Layout.js+++ b/frontend/my/src/Layout.js@@ -80,22 +80,19 @@ class Base extends React.Component {<Layout><Content style={{ margin: "0 16px" }}><div className="content-body">-<div id="alert-container"></div>- {/* <this.props.body setError={this.setError} /> */}-<Switch>- <Route exact path="/" render={(props) => <Dashboard { ...{ ...this.props, route: props } } />} />- <Route exact path="/lists" render={(props) => <Lists { ...{ ...this.props, route: props } } />} />- <Route exact path="/subscribers" render={(props) => <Subscribers { ...{ ...this.props, route: props } } />} />- <Route exact path="/subscribers/lists/:listID" render={(props) => <Subscribers { ...{ ...this.props, route: props } } />} />- <Route exact path="/subscribers/import" render={(props) => <Import { ...{ ...this.props, route: props } } />} />- <Route exact path="/campaigns" render={(props) => <Campaigns { ...{ ...this.props, route: props } } />} />- <Route exact path="/campaigns/new" render={(props) => <Campaign { ...{ ...this.props, route: props } } />} />- <Route exact path="/campaigns/media" render={(props) => <Media { ...{ ...this.props, route: props } } />} />- <Route exact path="/campaigns/templates" render={(props) => <Templates { ...{ ...this.props, route: props } } />} />- <Route exact path="/campaigns/:campaignID" render={(props) => <Campaign { ...{ ...this.props, route: props } } />} />- <Route exact path="/test" render={(props) => <Test { ...{ ...this.props, route: props } } />} />+ <Route exact key="/" path="/" render={(props) => <Dashboard { ...{ ...this.props, route: props } } />} />+ <Route exact key="/lists" path="/lists" render={(props) => <Lists { ...{ ...this.props, route: props } } />} />+ <Route exact key="/subscribers" path="/subscribers" render={(props) => <Subscribers { ...{ ...this.props, route: props } } />} />+ <Route exact key="/subscribers/lists/:listID" path="/subscribers/lists/:listID" render={(props) => <Subscribers { ...{ ...this.props, route: props } } />} />+ <Route exact key="/subscribers/import" path="/subscribers/import" render={(props) => <Import { ...{ ...this.props, route: props } } />} />+ <Route exact key="/campaigns" path="/campaigns" render={(props) => <Campaigns { ...{ ...this.props, route: props } } />} />+ <Route exact key="/campaigns/new" path="/campaigns/new" render={(props) => <Campaign { ...{ ...this.props, route: props } } />} />+ <Route exact key="/campaigns/media" path="/campaigns/media" render={(props) => <Media { ...{ ...this.props, route: props } } />} />+ <Route exact key="/campaigns/templates" path="/campaigns/templates" render={(props) => <Templates { ...{ ...this.props, route: props } } />} />+ <Route exact key="/campaigns/:campaignID" path="/campaigns/:campaignID" render={(props) => <Campaign { ...{ ...this.props, route: props } } />} />+ <Route exact key="/test" path="/test" render={(props) => <Test { ...{ ...this.props, route: props } } />} /></Switch></div>