diff --git a/examples/vite-react-ts/src/report/radio.tsx b/examples/vite-react-ts/src/report/radio.tsx index 44c3bd3..e9f0f0f 100644 --- a/examples/vite-react-ts/src/report/radio.tsx +++ b/examples/vite-react-ts/src/report/radio.tsx @@ -30,8 +30,8 @@ export const Radio: React.FunctionComponent = (props) => { background: hover ? '#ddd' : index === selectedValue - ? '#eee' - : '#fff', + ? '#eee' + : '#fff', transition: 'background 0.2s ease', borderRadius: 4, border: 'none', diff --git a/examples/vite-react-ts/src/report/report.tsx b/examples/vite-react-ts/src/report/report.tsx index b3a6671..dc2388e 100644 --- a/examples/vite-react-ts/src/report/report.tsx +++ b/examples/vite-react-ts/src/report/report.tsx @@ -54,7 +54,10 @@ export type Props = Partial & useState: typeof myUseHashState; useFetching: typeof myUseFetching; getTestUrl: (filename: string, test: string) => string | undefined; - renderArtifact: (type: ArtifactType, artifact: string) => React.ReactNode; + renderArtifact: ( + type: ArtifactType, + artifact: string + ) => { element: React.ReactNode; url: string } | null; }>; export const Report: React.FunctionComponent = ({ @@ -94,8 +97,8 @@ export const Report: React.FunctionComponent = ({ <>

No results URL provided.

{ if (e.key === 'Enter') { setResultsLocation((e.target as HTMLInputElement).value); @@ -127,40 +130,48 @@ export const Report: React.FunctionComponent = ({ const traceUrl = aElement.href; const viewerUrl = traceUrl.split('/traces/')[0]; const fullUrl = `${viewerUrl}/?trace=${traceUrl}`; - return ( -