mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: ForgottenPassword
- Replace HorizontalGroup
with Stack
(#86393)
This commit is contained in:
parent
ce092450db
commit
6a5bdcafa2
@ -1169,9 +1169,6 @@ exports[`better eslint`] = {
|
||||
"public/app/core/components/ForgottenPassword/ChangePassword.tsx:5381": [
|
||||
[0, 0, 0, "\'VerticalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"]
|
||||
],
|
||||
"public/app/core/components/ForgottenPassword/ForgottenPassword.tsx:5381": [
|
||||
[0, 0, 0, "\'HorizontalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"]
|
||||
],
|
||||
"public/app/core/components/GraphNG/GraphNG.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"],
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "1"],
|
||||
|
@ -4,7 +4,7 @@ import { useForm } from 'react-hook-form';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { getBackendSrv } from '@grafana/runtime';
|
||||
import { Field, Input, Button, Legend, Container, useStyles2, HorizontalGroup, LinkButton } from '@grafana/ui';
|
||||
import { Field, Input, Button, Legend, Container, useStyles2, LinkButton, Stack } from '@grafana/ui';
|
||||
import config from 'app/core/config';
|
||||
|
||||
interface EmailDTO {
|
||||
@ -63,12 +63,12 @@ export const ForgottenPassword = () => {
|
||||
{...register('userOrEmail', { required: 'Email or username is required' })}
|
||||
/>
|
||||
</Field>
|
||||
<HorizontalGroup>
|
||||
<Stack>
|
||||
<Button type="submit">Send reset email</Button>
|
||||
<LinkButton fill="text" href={loginHref}>
|
||||
Back to login
|
||||
</LinkButton>
|
||||
</HorizontalGroup>
|
||||
</Stack>
|
||||
|
||||
<p className={styles}>Did you forget your username or email? Contact your Grafana administrator.</p>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user