diff --git a/package.json b/package.json index 037b240..487b59f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "author": "Tom Southall", "keywords": [], "version": "0.2.0", - "private": true, + "private": false, "main": "dist/index.js", "module": "dist/index.js", "files": [ diff --git a/src/lib/components/matchingText.js b/src/lib/components/matchingText.js index f5ab7ca..c50e57e 100644 --- a/src/lib/components/matchingText.js +++ b/src/lib/components/matchingText.js @@ -1,12 +1,10 @@ import React, { useContext } from 'react' import { TurnstoneContext } from '../context/turnstone' -import classNameHelper from '../utils/classNameHelper' import escapeStringRegExp from 'escape-string-regexp' export default function ResultMatch(props) { const { text } = props const { customStyles, queryState } = useContext(TurnstoneContext) - const className = classNameHelper({}, customStyles) const regex = new RegExp('(' + escapeStringRegExp(queryState) + ')', 'i') const parts = text.split(regex) const index = parts.findIndex( @@ -14,7 +12,7 @@ export default function ResultMatch(props) { ) parts[index] = ( - + {parts[index]} )