diff --git a/src/rest/components/RestCodeSamples.tsx b/src/rest/components/RestCodeSamples.tsx index 2de68a75c963..1a3bfe8d16fe 100644 --- a/src/rest/components/RestCodeSamples.tsx +++ b/src/rest/components/RestCodeSamples.tsx @@ -1,6 +1,5 @@ import { useState, useEffect, useRef, FormEvent } from 'react' -import { FormControl, Select, TabNav } from '@primer/react' -import { Tooltip } from '@primer/react/next' +import { FormControl, IconButton, Select, TabNav } from '@primer/react' import { CheckIcon, CopyIcon } from '@primer/octicons-react' import { announce } from '@primer/live-region-element' import Cookies from 'src/frame/components/lib/cookies' @@ -282,22 +281,15 @@ export function RestCodeSamples({ operation, slug, heading }: Props) {
- - - + { + setCopied() + announce('Copied!') + }} + >