Skip to content

Commit 31e1fa7

Browse files
committed
chore: add beta badge to organizations settings page
1 parent a9b6897 commit 31e1fa7

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

site/src/components/FeatureBadge/FeatureBadge.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const styles = {
3434

3535
cursor: "default",
3636
flexShrink: 0,
37-
alignSelf: "baseline",
3837
padding: "4px 8px",
3938
lineHeight: 1,
4039
whiteSpace: "nowrap",

site/src/components/SettingsHeader/SettingsHeader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const SettingsHeader: FC<HeaderProps> = ({
3131
fontSize: 32,
3232
fontWeight: 700,
3333
display: "flex",
34-
alignItems: "center",
34+
alignItems: "baseline",
3535
lineHeight: "initial",
3636
margin: 0,
3737
marginBottom: 4,
@@ -47,6 +47,7 @@ export const SettingsHeader: FC<HeaderProps> = ({
4747
</h1>
4848
{tooltip}
4949
</Stack>
50+
5051
{description && (
5152
<span
5253
css={{

site/src/pages/ManagementSettingsPage/OrganizationSettingsPageView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
} from "utils/formUtils";
2727
import * as Yup from "yup";
2828
import { HorizontalContainer, HorizontalSection } from "./Horizontal";
29+
import { FeatureBadge } from "components/FeatureBadge/FeatureBadge";
2930

3031
const MAX_DESCRIPTION_CHAR_LIMIT = 128;
3132
const MAX_DESCRIPTION_MESSAGE = `Please enter a description that is no longer than ${MAX_DESCRIPTION_CHAR_LIMIT} characters.`;
@@ -66,7 +67,10 @@ export const OrganizationSettingsPageView: FC<
6667

6768
return (
6869
<div>
69-
<SettingsHeader title="Settings" />
70+
<SettingsHeader
71+
title="Settings"
72+
tooltip={<FeatureBadge type="beta" variant="interactive" size="lg" />}
73+
/>
7074

7175
{Boolean(error) && !isApiValidationError(error) && (
7276
<div css={{ marginBottom: 32 }}>

0 commit comments

Comments
 (0)