Skip to content

Commit f17252d

Browse files
committed
[dashboard] WIP
1 parent d04294d commit f17252d

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

components/dashboard/src/projects/ProjectSettings.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,19 @@ export default function () {
156156
</div>
157157
</div>
158158
</div>
159-
{BillingMode.canSetWorkspaceClass(teamBillingMode) && (
160-
<SelectWorkspaceClass
161-
workspaceClass={project.settings?.workspaceClasses?.regular}
162-
enabled={BillingMode.canSetWorkspaceClass(teamBillingMode)}
163-
setWorkspaceClass={setWorkspaceClass}
164-
/>
165-
)}
159+
<div>
160+
<h3 className="mt-12">Workspaces</h3>
161+
<p className="text-base text-gray-500 dark:text-gray-400">
162+
Choose the workspace machine type for your workspaces.
163+
</p>
164+
{BillingMode.canSetWorkspaceClass(teamBillingMode) && (
165+
<SelectWorkspaceClass
166+
workspaceClass={project.settings?.workspaceClasses?.regular}
167+
enabled={BillingMode.canSetWorkspaceClass(teamBillingMode)}
168+
setWorkspaceClass={setWorkspaceClass}
169+
/>
170+
)}
171+
</div>
166172
</ProjectSettingsPage>
167173
);
168174
}

components/dashboard/src/settings/selectClass.tsx

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,20 @@ export default function SelectWorkspaceClass(props: SelectWorkspaceClassProps) {
4848
return <div></div>;
4949
} else {
5050
return (
51-
<div>
52-
<h3 className="mt-12">Workspaces</h3>
53-
<p className="text-base text-gray-500 dark:text-gray-400">
54-
Choose the workspace machine type for your workspaces.
55-
</p>
56-
<div className="mt-4 space-x-3 flex">
57-
{supportedClasses.map((c) => {
58-
return (
59-
<WorkspaceClass
60-
additionalStyles="w-80 h-32"
61-
selected={workspaceClass === c.id}
62-
onClick={() => actuallySetWorkspaceClass(c.id)}
63-
category={c.category}
64-
friendlyName={c.displayName}
65-
description={c.description}
66-
powerUps={c.powerups}
67-
/>
68-
);
69-
})}
70-
</div>
51+
<div className="mt-4 space-x-3 flex">
52+
{supportedClasses.map((c) => {
53+
return (
54+
<WorkspaceClass
55+
additionalStyles="w-80 h-32"
56+
selected={workspaceClass === c.id}
57+
onClick={() => actuallySetWorkspaceClass(c.id)}
58+
category={c.category}
59+
friendlyName={c.displayName}
60+
description={c.description}
61+
powerUps={c.powerups}
62+
/>
63+
);
64+
})}
7165
</div>
7266
);
7367
}

0 commit comments

Comments
 (0)