mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: ChangePassword - Replace VerticalGroup with Stack (#86614)
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user