mirror of
https://github.com/fergalmoran/turnstone.git
synced 2025-12-22 09:49:56 +00:00
Move customStyles and splitChar to global state
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user