-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
299 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,5 @@ func getAddonRoutes( | |
|
||
var routes []*router.Route | ||
|
||
|
||
return routes, newPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
import React, { Component } from "react"; | ||
import React from "react"; | ||
import { withRouter, type RouteComponentProps } from "react-router"; | ||
|
||
import AuthzProvider from "shared/auth/AuthzContext"; | ||
import MainWrapperErrorBoundary from "shared/error_handling/MainWrapperErrorBoundary"; | ||
|
||
import AuthnProvider from "../shared/auth/AuthnContext"; | ||
import { ContextProvider } from "../shared/Context"; | ||
import Main from "./Main"; | ||
import { RouteComponentProps, withRouter } from "react-router"; | ||
import AuthProvider from "shared/auth/AuthContext"; | ||
import MainWrapperErrorBoundary from "shared/error_handling/MainWrapperErrorBoundary"; | ||
|
||
type PropsType = RouteComponentProps & {}; | ||
|
||
type StateType = {}; | ||
|
||
class MainWrapper extends Component<PropsType, StateType> { | ||
render() { | ||
let { history, location } = this.props; | ||
return ( | ||
<ContextProvider history={history} location={location}> | ||
<AuthProvider> | ||
const MainWrapper: React.FC<PropsType> = ({ history, location }) => { | ||
return ( | ||
<ContextProvider history={history} location={location}> | ||
<AuthzProvider> | ||
<AuthnProvider> | ||
<MainWrapperErrorBoundary> | ||
<Main /> | ||
</MainWrapperErrorBoundary> | ||
</AuthProvider> | ||
</ContextProvider> | ||
); | ||
} | ||
} | ||
</AuthnProvider> | ||
</AuthzProvider> | ||
</ContextProvider> | ||
); | ||
}; | ||
|
||
export default withRouter(MainWrapper); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.