Move customStyles and splitChar to global state

This commit is contained in:
Tom Southall
2022-02-17 15:45:42 +00:00
parent 5ee40eab38
commit c110222c9d
6 changed files with 21 additions and 28 deletions

View File

@@ -56,11 +56,8 @@ export default function Container(props) {
} = props
// Global state from context
const {
state,
dispatch,
customStyles
} = useContext(StateContext)
const { state, dispatch } = useContext(StateContext)
const { customStyles } = state
// Component state
const [debouncedQuery] = useDebounce(state.query, debounceWait)