mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 09:05:45 -06:00
* 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>
23 lines
506 B
TypeScript
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;
|