grafana/public/app/core/components/Signup/VerifyEmailPage.tsx
Kamal Galrani f6c31c2e10
Fixes signup workflow and UI (#26263)
* fixes signup flow

* Apply suggestions from code review

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

* Update ForgottenPassword.tsx

* fixes build failure

* fixes build failure

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
2020-09-07 18:24:46 +03:00

23 lines
506 B
TypeScript

import React, { FC } from 'react';
import { LoginLayout, InnerBox } from '../Login/LoginLayout';
import { VerifyEmail } from './VerifyEmail';
import { getConfig } from 'app/core/config';
export const VerifyEmailPage: FC = () => {
if (!getConfig().verifyEmailEnabled) {
window.location.href = getConfig().appSubUrl + '/signup';
return <></>;
}
return (
<LoginLayout>
<InnerBox>
<VerifyEmail />
</InnerBox>
</LoginLayout>
);
};
export default VerifyEmailPage;