diff --git a/webui2/src/components/bugs/comment-box.tsx b/webui2/src/components/bugs/comment-box.tsx index a3b2765b2076c1ba56670641ffeb61d39d70b75f..aa5fd8f91440b2c8c2debdef7e57f0cf0485c79b 100644 --- a/webui2/src/components/bugs/comment-box.tsx +++ b/webui2/src/components/bugs/comment-box.tsx @@ -120,7 +120,7 @@ export function CommentBox({ bugPrefix, bugStatus, ref_ }: CommentBoxProps) { return ( - + diff --git a/webui2/src/components/bugs/label-editor.tsx b/webui2/src/components/bugs/label-editor.tsx index b5278b865dea0a6bed71b7c6e75f490b14bf384c..8a4286183fce750e38142213ab3249289ca0b6a9 100644 --- a/webui2/src/components/bugs/label-editor.tsx +++ b/webui2/src/components/bugs/label-editor.tsx @@ -157,7 +157,7 @@ export function LabelEditor({ bugPrefix, currentLabels, ref_, validLabels }: Lab : {} } /> - + ); })} @@ -172,7 +172,7 @@ export function LabelEditor({ bugPrefix, currentLabels, ref_, validLabels }: Lab ) : (
{currentLabels.map((label) => ( - + ))}
)} diff --git a/webui2/src/components/bugs/timeline.tsx b/webui2/src/components/bugs/timeline.tsx index f008d17bd11684475bb32ea098dba90259f6998f..bcb0f096180a777fe47c13bd850b3d79c3f855e2 100644 --- a/webui2/src/components/bugs/timeline.tsx +++ b/webui2/src/components/bugs/timeline.tsx @@ -164,7 +164,7 @@ function CommentItem({ return ( - + added{" "} {item.added.map((l, i) => ( - + ))}{" "} )} @@ -266,7 +266,7 @@ function LabelChangeItem({ item, repo }: { item: LabelChangeItem; repo: string | <> removed{" "} {item.removed.map((l, i) => ( - + ))}{" "} )} diff --git a/webui2/src/components/shared/comment-card.tsx b/webui2/src/components/shared/comment-card.tsx index 6e7c161f7619f78499d85ad757655630945e3ebe..ba52fe791007b57f16ed61c2e69fdcf7ead56dae 100644 --- a/webui2/src/components/shared/comment-card.tsx +++ b/webui2/src/components/shared/comment-card.tsx @@ -25,12 +25,12 @@ export function Root({ children, className }: RootProps) { } interface AuthorAvatarProps { - from: FragmentType; + author: FragmentType; className?: string; } -export function AuthorAvatar({ from, className }: AuthorAvatarProps) { - const { data } = useSuspenseFragment({ fragment: IDENTITY_SUMMARY_FRAGMENT, from }); +export function AuthorAvatar({ author, className }: AuthorAvatarProps) { + const { data } = useSuspenseFragment({ fragment: IDENTITY_SUMMARY_FRAGMENT, from: author }); return ( diff --git a/webui2/src/components/shared/issue-filters.tsx b/webui2/src/components/shared/issue-filters.tsx index d4780cfe06922a6af2220af3d0dc133b62ceca70..aebc458ffd02d044c7a833380b25aaea37ec4656 100644 --- a/webui2/src/components/shared/issue-filters.tsx +++ b/webui2/src/components/shared/issue-filters.tsx @@ -373,7 +373,7 @@ function LabelFilter({ opacity: active ? 1 : 0.35, }} /> - + ); })} diff --git a/webui2/src/components/shared/label-badge.tsx b/webui2/src/components/shared/label-badge.tsx index e73951dcb575866a2285a431db241d3b587417e9..c49dac869051dfdd8d1e3729e5c8501d1d9d4cd1 100644 --- a/webui2/src/components/shared/label-badge.tsx +++ b/webui2/src/components/shared/label-badge.tsx @@ -22,7 +22,7 @@ function contrastColor(r: number, g: number, b: number): string { } interface LabelBadgeProps { - from: FragmentType; + label: FragmentType; className?: string; } @@ -31,8 +31,8 @@ interface LabelBadgeProps { const LabelBadge = React.forwardRef< HTMLSpanElement, LabelBadgeProps & Omit, "color"> ->(({ from, className, ...props }, ref) => { - const { data } = useSuspenseFragment({ fragment: LABEL_FIELDS_FRAGMENT, from }); +>(({ label, className, ...props }, ref) => { + const { data } = useSuspenseFragment({ fragment: LABEL_FIELDS_FRAGMENT, from: label }); const bg = `rgb(${data.color.R},${data.color.G},${data.color.B})`; const text = contrastColor(data.color.R, data.color.G, data.color.B); diff --git a/webui2/src/routes/$repo/_issues/issues/index.tsx b/webui2/src/routes/$repo/_issues/issues/index.tsx index 77cdd7772d9357e6d930dcfb2480f3f0ba9524f4..9d4b6569252dbb932a32b9e6a4bfd9c242f18d6f 100644 --- a/webui2/src/routes/$repo/_issues/issues/index.tsx +++ b/webui2/src/routes/$repo/_issues/issues/index.tsx @@ -290,7 +290,7 @@ function RouteComponent() { {bug.labels.map((label) => ( {bug.labels.map((label) => ( - + ))}