mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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>
28 lines
689 B
TypeScript
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>
|
|
);
|
|
};
|