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",