mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 04:03:47 +01:00
Change URLS:
This commit is contained in:
parent
ff5859a704
commit
9d80a03018
@ -54,17 +54,17 @@ const App = () => {
|
||||
<Router>
|
||||
<Switch>
|
||||
<Route exact path="/">
|
||||
<Redirect to="/c/view/login" />
|
||||
<Redirect to="/c/login" />
|
||||
</Route>
|
||||
<Route path="/c/view/login" component={LoginPage} />
|
||||
<Route path="/c/view/registration">
|
||||
<Route path="/c/login" component={LoginPage} />
|
||||
<Route path="/c/registration">
|
||||
<RegistationPage service={service} />
|
||||
</Route>
|
||||
<Route path="/c/view/registration-success" component={RegistrationSuccessPage} />
|
||||
<Route path="/c/view/forgot-password">
|
||||
<Route path="/c/registration-success" component={RegistrationSuccessPage} />
|
||||
<Route path="/c/forgot-password">
|
||||
<ForgotPasswordPage service={service} />
|
||||
</Route>
|
||||
<Route path="/c/view/forgot-password-success" component={ForgotPasswordSuccessPage} />
|
||||
<Route path="/c/forgot-password-success" component={ForgotPasswordSuccessPage} />
|
||||
</Switch>
|
||||
</Router>
|
||||
</IntlProvider>
|
||||
|
@ -38,7 +38,7 @@ class Header extends React.Component<HeaderProps, HeaderProps> {
|
||||
return (
|
||||
<StyledNav>
|
||||
<StyledDiv>
|
||||
<Logo><Link to="/c/view/login" className="header-logo"><img src={String(logo)} alt="logo" /></Link></Logo>
|
||||
<Logo><Link to="/c/login" className="header-logo"><img src={String(logo)} alt="logo" /></Link></Logo>
|
||||
{text}
|
||||
{signUpButton}
|
||||
{signInButton}
|
||||
@ -57,7 +57,7 @@ const SignInButton = (props: ButtonProps) => {
|
||||
const style = props.style ? props.style : 'style1';
|
||||
return (
|
||||
<span className={`button-${style} ${props.className}`}>
|
||||
<Link to="/c/view/login"><FormattedMessage id="login.signin" defaultMessage="Sign In" /></Link>
|
||||
<Link to="/c/login"><FormattedMessage id="login.signin" defaultMessage="Sign In" /></Link>
|
||||
</span>);
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ const SignUpButton = (props: ButtonProps) => {
|
||||
const style = props.style ? props.style : 'style1';
|
||||
return (
|
||||
<span className={`button-${style} ${props.className}`}>
|
||||
<Link to="/c/view/registration"><FormattedMessage id="login.signup" defaultMessage="Sign Up" /></Link>
|
||||
<Link to="/c/registration"><FormattedMessage id="login.signup" defaultMessage="Sign Up" /></Link>
|
||||
</span>);
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ const LoginPage = () => {
|
||||
</div>
|
||||
<SubmitButton value={intl.formatMessage({ id: "login.signin", defaultMessage: "Sign In" })} />
|
||||
</form>
|
||||
<Link to="/c/view/forgot-password"><FormattedMessage id="login.forgotpwd" defaultMessage="Forgot Password ?" /></Link>
|
||||
<Link to="/c/forgot-password"><FormattedMessage id="login.forgotpwd" defaultMessage="Forgot Password ?" /></Link>
|
||||
|
||||
<ConfigStatusMessage enabled='false' />
|
||||
|
||||
|
@ -41,7 +41,7 @@ const RegistrationForm = (props: ServiceProps) => {
|
||||
// Call Service ...
|
||||
props.service.registerNewUser(
|
||||
user,
|
||||
() => history.push("/c/view/registration-success"),
|
||||
() => history.push("/c/registration-success"),
|
||||
(msg) => { setErrorMsg(msg); setDisableButton(false); }
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user