Skip to content

Commit c4929c7

Browse files
committed
Fixes ilegal DOM nesting
1 parent 0df31cf commit c4929c7

File tree

1 file changed

+8
-9
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions

1 file changed

+8
-9
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions/route.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export default function Page() {
262262
<TableCellMenu
263263
className="pl-32"
264264
isSticky
265-
visibleButtons={
265+
hiddenButtons={
266266
<SetDefaultDialog regions={regions} newDefaultRegion={region} />
267267
}
268268
/>
@@ -309,12 +309,9 @@ export default function Page() {
309309
<TextLink to="https://security.trigger.dev">security portal</TextLink> or{" "}
310310
<Feedback
311311
button={
312-
<Paragraph
313-
variant="extra-small"
314-
className="cursor-pointer text-indigo-500 transition hover:text-indigo-400"
315-
>
312+
<span className="cursor-pointer text-xs text-indigo-500 transition hover:text-indigo-400">
316313
get in touch
317-
</Paragraph>
314+
</span>
318315
}
319316
defaultValue="help"
320317
/>
@@ -345,20 +342,21 @@ function SetDefaultDialog({
345342
<Dialog open={isOpen} onOpenChange={setIsOpen}>
346343
<DialogTrigger asChild>
347344
<Button
348-
variant="secondary/small"
345+
variant="minimal/small"
349346
LeadingIcon={MapPinIcon}
350347
leadingIconClassName="text-blue-500"
351348
iconSpacing="gap-2"
352349
className="pl-2"
353350
>
354-
Set as default…
351+
<span className="text-text-bright">Set as default…</span>
355352
</Button>
356353
</DialogTrigger>
357354
<DialogContent>
358355
<DialogHeader>
359356
<DialogTitle>Set as default region</DialogTitle>
360357
</DialogHeader>
361-
<DialogDescription>
358+
<DialogDescription asChild>
359+
<div>
362360
<Paragraph>
363361
Are you sure you want to set {newDefaultRegion.name} as your new default region?
364362
</Paragraph>
@@ -441,6 +439,7 @@ function SetDefaultDialog({
441439
Runs triggered from now on will execute in "{newDefaultRegion.name}", unless you{" "}
442440
<TextLink to={docsPath("triggering#region")}>override when triggering</TextLink>.
443441
</Paragraph>
442+
</div>
444443
</DialogDescription>
445444
<DialogFooter>
446445
<Button variant="secondary/medium" onClick={() => setIsOpen(false)}>

0 commit comments

Comments
 (0)