Files
grafana/public/app/core/components/Login/UserSignup.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

28 lines
689 B
TypeScript

import React, { FC } from 'react';
import { LinkButton, VerticalGroup } from '@grafana/ui';
import { css } from 'emotion';
import { getConfig } from 'app/core/config';
export const UserSignup: FC<{}> = () => {
const href = getConfig().verifyEmailEnabled ? `${getConfig().appSubUrl}/verify` : `${getConfig().appSubUrl}/signup`;
return (
<VerticalGroup
className={css`
margin-top: 8px;
`}
>
<span>New to Grafana?</span>
<LinkButton
className={css`
width: 100%;
justify-content: center;
`}
href={href}
variant="secondary"
>
Sign Up
</LinkButton>
</VerticalGroup>
);
};