Chore: ForgottenPassword - Replace HorizontalGroup with Stack (#86393)

This commit is contained in:
Laura Fernández 2024-04-17 11:51:49 +02:00 committed by GitHub
parent ce092450db
commit 6a5bdcafa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -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"],

View File

@ -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>