Chore: ChangePassword - Replace VerticalGroup with Stack (#86614)

This commit is contained in:
Laura Fernández
2024-04-19 17:37:51 +02:00
committed by GitHub
parent efa5e582cc
commit b5335f0910
2 changed files with 3 additions and 6 deletions

View File

@@ -1133,9 +1133,6 @@ exports[`better eslint`] = {
"public/app/core/components/DynamicImports/SafeDynamicImport.tsx:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
],
"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/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

@@ -3,7 +3,7 @@ import { useForm } from 'react-hook-form';
import { selectors } from '@grafana/e2e-selectors';
import { config } from '@grafana/runtime';
import { Tooltip, Field, VerticalGroup, Button, Alert, useStyles2 } from '@grafana/ui';
import { Tooltip, Field, Button, Alert, useStyles2, Stack } from '@grafana/ui';
import { getStyles } from '../Login/LoginForm';
import { PasswordField } from '../PasswordField/PasswordField';
@@ -81,7 +81,7 @@ export const ChangePassword = ({ onSubmit, onSkip, showDefaultPasswordWarning }:
autoComplete="new-password"
/>
</Field>
<VerticalGroup>
<Stack direction="column">
<Button type="submit" className={styles.submitButton}>
Submit
</Button>
@@ -96,7 +96,7 @@ export const ChangePassword = ({ onSubmit, onSkip, showDefaultPasswordWarning }:
</Button>
</Tooltip>
)}
</VerticalGroup>
</Stack>
</form>
);
};