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