File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11declare module '@radix-ui/react-icons' {
2- import * as React from 'react' ;
2+ import type { ForwardRefExoticComponent , SVGProps } from 'react' ;
33
4- export interface IconProps extends React . SVGProps < SVGSVGElement > {
5- width ?: number | string ;
4+ export interface IconProps extends SVGProps < SVGSVGElement > {
65 height ?: number | string ;
6+ width ?: number | string ;
77 }
88
9- type IconComponent = React . ForwardRefExoticComponent < IconProps > ;
9+ type IconComponent = ForwardRefExoticComponent < IconProps > ;
1010
1111 export const CopyIcon : IconComponent ;
1212 export const CheckIcon : IconComponent ;
Original file line number Diff line number Diff line change 11"use client" ;
22
3+ // eslint-disable-next-line simple-import-sort/imports
34import { useState , useCallback , Fragment } from 'react' ;
5+
46import { createPortal } from 'react-dom' ;
57import { CopyIcon , CheckIcon } from '@radix-ui/react-icons' ;
68
@@ -35,8 +37,8 @@ export default function CopyForLLMButton() {
3537 setCopied ( false ) ;
3638 setShowToast ( false ) ;
3739 } , 2000 ) ;
38- } catch ( err ) {
39- console . error ( 'Failed to copy content for LLM' , err ) ;
40+ } catch {
41+ /* ignore clipboard errors */
4042 }
4143 } , [ ] ) ;
4244
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import './type.scss';
1414import { Banner } from '../banner' ;
1515import { Breadcrumbs } from '../breadcrumbs' ;
1616import { CodeContextProvider } from '../codeContext' ;
17+ import CopyForLLMButton from '../copyForLLMButton' ;
1718import { DocFeedback } from '../docFeedback' ;
1819import { GitHubCTA } from '../githubCTA' ;
1920import { Header } from '../header' ;
@@ -23,7 +24,6 @@ import {PlatformSdkDetail} from '../platformSdkDetail';
2324import { Sidebar } from '../sidebar' ;
2425import { SidebarTableOfContents } from '../sidebarTableOfContents' ;
2526import { ReaderDepthTracker } from '../track-reader-depth' ;
26- import CopyForLLMButton from '../copyForLLMButton' ;
2727
2828type Props = {
2929 children : ReactNode ;
You can’t perform that action at this time.
0 commit comments