Skip to content

Commit

Permalink
Grafana UI: LoginPage - Replace HorizontalGroup with Stack (#86068
Browse files Browse the repository at this point in the history
)
  • Loading branch information
eledobleefe committed Apr 15, 2024
1 parent 6ff021b commit 2b62167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .betterer.results
Original file line number Diff line number Diff line change
Expand Up @@ -1178,9 +1178,6 @@ exports[`better eslint`] = {
[0, 0, 0, "Do not use any type assertions.", "8"],
[0, 0, 0, "Do not use any type assertions.", "9"]
],
"public/app/core/components/Login/LoginPage.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/Login/LoginServiceButtons.tsx:5381": [
[0, 0, 0, "\'VerticalGroup\' import from \'@grafana/ui\' is restricted from being used by a pattern. Use Stack component instead.", "0"]
],
Expand Down
6 changes: 3 additions & 3 deletions public/app/core/components/Login/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
// Components
import { GrafanaTheme2 } from '@grafana/data';
import { config } from '@grafana/runtime';
import { Alert, HorizontalGroup, LinkButton, useStyles2 } from '@grafana/ui';
import { Alert, LinkButton, Stack, useStyles2 } from '@grafana/ui';
import { Branding } from 'app/core/components/Branding/Branding';
import { t, Trans } from 'app/core/internationalization';

Expand Down Expand Up @@ -47,7 +47,7 @@ export const LoginPage = () => {

{!disableLoginForm && (
<LoginForm onSubmit={login} loginHint={loginHint} passwordHint={passwordHint} isLoggingIn={isLoggingIn}>
<HorizontalGroup justify="flex-end">
<Stack justifyContent="flex-end">
{!config.auth.disableLogin && (
<LinkButton
className={styles.forgottenPassword}
Expand All @@ -57,7 +57,7 @@ export const LoginPage = () => {
<Trans i18nKey="login.forgot-password">Forgot your password?</Trans>
</LinkButton>
)}
</HorizontalGroup>
</Stack>
</LoginForm>
)}
<LoginServiceButtons />
Expand Down

0 comments on commit 2b62167

Please sign in to comment.