Skip to content

Commit a508790

Browse files
waleedlatif1claude
andcommitted
fix(zoominfo): use useId for ZoomInfoIcon clipPath to avoid duplicate DOM ids
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 089d25e commit a508790

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

apps/docs/components/icons.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4684,6 +4684,8 @@ export function ZoomIcon(props: SVGProps<SVGSVGElement>) {
46844684
}
46854685

46864686
export function ZoomInfoIcon(props: SVGProps<SVGSVGElement>) {
4687+
const id = useId()
4688+
const clipId = `zoominfo-clip_${id}`
46874689
return (
46884690
<svg
46894691
{...props}
@@ -4692,7 +4694,7 @@ export function ZoomInfoIcon(props: SVGProps<SVGSVGElement>) {
46924694
xmlns='http://www.w3.org/2000/svg'
46934695
aria-hidden='true'
46944696
>
4695-
<g clipPath='url(#zoominfo-clip)'>
4697+
<g clipPath={`url(#${clipId})`}>
46964698
<path
46974699
d='M0.272461 8.27246C0.272461 3.85418 3.85418 0.272461 8.27246 0.272461H56.2725C60.6907 0.272461 64.2725 3.85418 64.2725 8.27246V56.2725C64.2725 60.6907 60.6907 64.2725 56.2725 64.2725H8.27246C3.85418 64.2725 0.272461 60.6907 0.272461 56.2725V8.27246Z'
46984700
fill='#EA1B15'
@@ -4703,7 +4705,7 @@ export function ZoomInfoIcon(props: SVGProps<SVGSVGElement>) {
47034705
/>
47044706
</g>
47054707
<defs>
4706-
<clipPath id='zoominfo-clip'>
4708+
<clipPath id={clipId}>
47074709
<rect width='64' height='64' fill='white' transform='translate(0.272461 0.272461)' />
47084710
</clipPath>
47094711
</defs>

apps/sim/components/icons.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4684,6 +4684,8 @@ export function ZoomIcon(props: SVGProps<SVGSVGElement>) {
46844684
}
46854685

46864686
export function ZoomInfoIcon(props: SVGProps<SVGSVGElement>) {
4687+
const id = useId()
4688+
const clipId = `zoominfo-clip_${id}`
46874689
return (
46884690
<svg
46894691
{...props}
@@ -4692,7 +4694,7 @@ export function ZoomInfoIcon(props: SVGProps<SVGSVGElement>) {
46924694
xmlns='http://www.w3.org/2000/svg'
46934695
aria-hidden='true'
46944696
>
4695-
<g clipPath='url(#zoominfo-clip)'>
4697+
<g clipPath={`url(#${clipId})`}>
46964698
<path
46974699
d='M0.272461 8.27246C0.272461 3.85418 3.85418 0.272461 8.27246 0.272461H56.2725C60.6907 0.272461 64.2725 3.85418 64.2725 8.27246V56.2725C64.2725 60.6907 60.6907 64.2725 56.2725 64.2725H8.27246C3.85418 64.2725 0.272461 60.6907 0.272461 56.2725V8.27246Z'
46984700
fill='#EA1B15'
@@ -4703,7 +4705,7 @@ export function ZoomInfoIcon(props: SVGProps<SVGSVGElement>) {
47034705
/>
47044706
</g>
47054707
<defs>
4706-
<clipPath id='zoominfo-clip'>
4708+
<clipPath id={clipId}>
47074709
<rect width='64' height='64' fill='white' transform='translate(0.272461 0.272461)' />
47084710
</clipPath>
47094711
</defs>

0 commit comments

Comments
 (0)