Skip to content

Clean up route handling: use withRouter and do not render components that require login #223

Description

@razzius

For example

            <Route
              path="/create-profile"
              render={({ history }) => (
                <CreateProfile
                  account={account}
                  setProfileId={this.setProfileId}
                  history={history}
                />
              )}
            />

History can be provided by withRouter, and it should render the logged out page rather than the component if there is no user, rather than making the component handle that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions