From 658f2c19a6d5db5662ac48a44d0a0aa245f72eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Tue, 27 Aug 2024 14:37:59 +0100 Subject: [PATCH] fix: Pass along missing `variant` prop [skip pizza] --- .../pages/FlowEditor/components/Sidebar/Search/Headline.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/Headline.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/Headline.tsx index 5681e19324..b247d74c3d 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/Headline.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/Headline.tsx @@ -8,7 +8,7 @@ interface Props { variant: "data"; } -export const Headline: React.FC = ({ text, matchIndices }) => { +export const Headline: React.FC = ({ text, matchIndices, variant }) => { const isHighlighted = (index: number) => matchIndices.some(([start, end]) => index >= start && index <= end); @@ -17,7 +17,7 @@ export const Headline: React.FC = ({ text, matchIndices }) => { {text.split("").map((char, index) => ( ({ fontWeight: isHighlighted(index) ? FONT_WEIGHT_BOLD : "regular",