Skip to content

Commit 511850b

Browse files
committed
Improve client ID markup
- Make it a header - Add a copy icon
1 parent 1be8f15 commit 511850b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/EditOAuth2AppPageView.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { useTheme } from "@emotion/react";
2+
import CopyIcon from "@mui/icons-material/FileCopyOutlined";
3+
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
24
import Divider from "@mui/material/Divider";
35
import LoadingButton from "@mui/lab/LoadingButton";
46
import Button from "@mui/material/Button";
@@ -8,7 +10,6 @@ import TableCell from "@mui/material/TableCell";
810
import TableContainer from "@mui/material/TableContainer";
911
import TableHead from "@mui/material/TableHead";
1012
import TableRow from "@mui/material/TableRow";
11-
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
1213
import { type FC, useState } from "react";
1314
import { Link, useSearchParams } from "react-router-dom";
1415
import type * as TypesGen from "api/typesGenerated";
@@ -138,12 +139,16 @@ export const EditOAuth2AppPageView: FC<EditOAuth2AppProps> = ({
138139
onCancel={() => setShowDelete(false)}
139140
/>
140141

141-
<Stack direction="row">
142-
<div>
143-
<strong>Client ID:</strong>
144-
</div>
145-
<CopyableValue value={app.id}>{app.id}</CopyableValue>
146-
</Stack>
142+
<h2 css={{ marginBottom: 0 }}>Client ID</h2>
143+
<CopyableValue value={app.id}>
144+
{app.id}{" "}
145+
<CopyIcon
146+
css={{
147+
width: 16,
148+
height: 16,
149+
}}
150+
/>
151+
</CopyableValue>
147152

148153
<Divider css={{ borderColor: theme.palette.divider }} />
149154

0 commit comments

Comments
 (0)