10000 chore: cleanup · coder/coder@732006a · GitHub
[go: up one dir, main page]

Skip to content

Commit 732006a

Browse files
committed
chore: cleanup
1 parent e825cf0 commit 732006a

File tree

6 files changed

+25
-33
lines changed

6 files changed

+25
-33
lines changed

site/src/components/Spinner/Spinner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const meta: Meta<typeof Spinner> = {
66
title: "components/Spinner",
77
component: Spinner,
88
args: {
9-
children: <PlusIcon className="size-icon-md" />,
9+
children: <PlusIcon className="size-icon-lg" />,
1010
},
1111
};
1212

site/src/components/Spinner/Spinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const leaves = 8;
1414
const spinnerVariants = cva("", {
1515
variants: {
1616
size: {
17-
lg: "size-icon-md",
17+
lg: "size-icon-lg",
1818
sm: "size-icon-sm",
1919
},
2020
},

site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -340,35 +340,27 @@ export const CreateWorkspacePageViewExperimental: FC<
340340
<Label className="text-sm" htmlFor={`${id}-workspace-name`}>
341341
Workspace name
342342
</Label>
343-
<div className="flex flex-col">
344-
<Input
345-
id={`${id}-workspace-name`}
346-
ref={workspaceNameInputRef}
347-
value={form.values.name}
348-
onChange={(e) => {
349-
form.setFieldValue("name", e.target.value.trim());
350-
resetMutation();
343+
<Input
344+
id={`${id}-workspace-name`}
345+
value={form.values.name}
346+
onChange={(e) => {
347+
form.setFieldValue("name", e.target.value.trim());
348+
resetMutation();
349+
}}
350+
disabled={creatingWorkspace}
351+
/>
352+
<div className="flex gap-2 text-xs text-content-secondary items-center">
353+
Need a suggestion?
354+
<Button
355+
variant="subtle"
356+
size="sm"
357+
onClick={async () => {
358+
await form.setFieldValue("name", suggestedName);
359+
rerollSuggestedName();
351360
}}
352-
disabled={creatingWorkspace}
353-
/>
354-
{form.touched.name && form.errors.name && (
355-
<div className="text-content-destructive text-xs mt-2">
356-
{form.errors.name}
357-
</div>
358-
)}
359-
<div className="flex gap-2 text-xs text-content-secondary items-center">
360-
Need a suggestion?
361-
<Button
362-
variant="subtle"
363-
size="sm"
364-
onClick={async () => {
365-
await form.setFieldValue("name", suggestedName);
366-
rerollSuggestedName();
367-
}}
368-
>
369-
{suggestedName}
370-
</Button>
371-
</div>
361+
>
362+
{suggestedName}
363+
</Button>
372364
</div>
373365
</div>
374366
{permissions.createWorkspaceForAny && (

site/src/pages/DeploymentSettingsPage/IdpOrgSyncPage/IdpOrgSyncPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ const OrganizationRow: FC<OrganizationRowProps> = ({
448448
aria-label="delete"
449449
onClick={() => onDelete(idpOrg)}
450450
>
451-
<Trash className="size-icon-sm" />
451+
<Trash />
452452
<span className="sr-only">Delete IdP mapping</span>
453453
</Button>
454454
</TableCell>

site/src/pages/OrganizationSettingsPage/UserTable/EditRolesButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const EditRolesButton: FC<EditRolesButtonProps> = ({
135135
size="icon"
136136
className="text-content-secondary hover:text-content-primary"
137137
>
138-
<EditSquare className="size-icon-sm" />
138+
<EditSquare />
139139
</Button>
140140
</Tooltip>
141141
</PopoverTrigger>

site/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
sans: `"Inter Variable", system-ui, sans-serif`,
1313
},
1414
size: {
15-
"icon-md": "1.5rem",
15+
"icon-lg": "1.5rem",
1616
"icon-sm": "1.125rem",
1717
"icon-xs": "0.875rem",
1818
},

0 commit comments

Comments
 (0)
0