diff --git a/client/browser/src/contentScript/github/codeView.ts b/client/browser/src/contentScript/github/codeView.ts index 728df9da..ba7f8411 100644 --- a/client/browser/src/contentScript/github/codeView.ts +++ b/client/browser/src/contentScript/github/codeView.ts @@ -114,7 +114,7 @@ function redraw(annotations: Annotation[]): void { if (lineEl) { const chipList = createItemChipList( styledItemChipListParams({ - items, + annotations: items, }) ) lineEl.append(chipList) diff --git a/client/browser/src/contentScript/github/pullRequestFilesView.ts b/client/browser/src/contentScript/github/pullRequestFilesView.ts index 56cdd95a..1e479de3 100644 --- a/client/browser/src/contentScript/github/pullRequestFilesView.ts +++ b/client/browser/src/contentScript/github/pullRequestFilesView.ts @@ -84,7 +84,7 @@ function redraw(file: DiffViewFileVersionData, annotations: Annotation[]): void const chipList = createItemChipList( styledItemChipListParams({ - items: lineAnnotations.map(ann => ann.item), + annotations: lineAnnotations.map(ann => ann.item), }) ) lineEl.append(chipList) diff --git a/lib/ui-react/package.json b/lib/ui-react/package.json index 05e045d7..c392e43c 100644 --- a/lib/ui-react/package.json +++ b/lib/ui-react/package.json @@ -24,7 +24,7 @@ "prebuild": "mkdir -p dist && cp -R src/* dist/ && find dist/ -name '*.tsx' -delete", "build": "pnpm run --silent prebuild && tsc --build", "test": "vitest", - "storybook": "storybook dev --no-open --no-version-updates --no-release-notes", + "storybook": "storybook dev --no-version-updates", "prepublishOnly": "tsc --build --clean && pnpm run build" }, "dependencies": { diff --git a/lib/ui-react/src/chip/Chip.tsx b/lib/ui-react/src/chip/Chip.tsx index b46a029b..9d567bc8 100644 --- a/lib/ui-react/src/chip/Chip.tsx +++ b/lib/ui-react/src/chip/Chip.tsx @@ -11,9 +11,7 @@ export const Chip: FunctionComponent<{ annotation: Annotation className?: string popoverClassName?: string -}> = ({ annotation: ann, className, popoverClassName }) => { - const hasDetail = Boolean(ann.ui?.detail) - +}> = ({ annotation, className, popoverClassName }) => { const [popoverVisible, setPopoverVisible] = useState(false) const showPopover = useCallback((): void => setPopoverVisible(true), []) const hidePopover = useCallback((): void => setPopoverVisible(false), []) @@ -23,14 +21,14 @@ export const Chip: FunctionComponent<{ return (