Skip to content

Commit f0e120b

Browse files
committed
fix: clean up Create page view again
1 parent 61b26f5 commit f0e120b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,8 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
261261
);
262262
};
263263

264-
type VerifiableAuth = Readonly<{ authenticated: boolean; id: string }>;
265264
function getAuthErrors(
266-
authList: readonly VerifiableAuth[],
265+
authList: readonly TypesGen.TemplateVersionExternalAuth[],
267266
): Readonly<Record<string, string>> {
268267
const authErrors: Record<string, string> = {};
269268

@@ -284,6 +283,11 @@ function DuplicateWarningMessage() {
284283
return null;
285284
}
286285

286+
// Set up looks a little hokey (having an Alert already fully configured to
287+
// listen to dismissals, on top of more dismissal state), but relying solely
288+
// on the Alert API wouldn't get rid of the div and horizontal margin helper
289+
// after the dismiss happens. Not using CSS margins because those can be a
290+
// style maintenance nightmare over time
287291
return (
288292
<div css={{ paddingTop: theme.spacing(6) }}>
289293
<Margins size="medium">

0 commit comments

Comments
 (0)