Skip to content

Commit 835ae21

Browse files
NicolappsConvex, Inc.
authored andcommitted
dash: avoid nested buttons in TeamForm (#43541)
GitOrigin-RevId: 55441b98089cdbfe09333bea85fb4b5a3404e959
1 parent d951bb9 commit 835ae21

File tree

1 file changed

+2
-1
lines changed
  • npm-packages/dashboard/src/components/teamSettings

1 file changed

+2
-1
lines changed

npm-packages/dashboard/src/components/teamSettings/TeamForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export function TeamForm({
8686
placeholder="Enter a slug for your team"
8787
onChange={formState.handleChange}
8888
value={formState.values.slug}
89-
Icon={CopyIcon}
89+
// We hide the button when the tooltip is visible to avoid nesting buttons
90+
Icon={hasAdminPermissions ? CopyIcon : undefined}
9091
action={() => copyToClipboard(formState.values.slug)}
9192
id="slug"
9293
error={formState.errors.slug}

0 commit comments

Comments
 (0)