Skip to content

Commit

Permalink
feat: added search queries to the url parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheridan Sunier committed Mar 1, 2023
1 parent 1615a02 commit 71ec3ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react/src/js/components/Consonant/Container/Container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const Container = (props) => {
const { config } = props;
const getConfig = makeConfigGetter(config);
const filterGroupPrefix = 'ch_';
const searchPrefix = 'sh_';

/**
**** Authored Configs ****
Expand Down Expand Up @@ -458,6 +459,7 @@ const Container = (props) => {
*/
const handleSearchInputChange = (val) => {
setSearchQuery(val);
setUrlState(searchPrefix, val);
};

/**
Expand Down

0 comments on commit 71ec3ec

Please sign in to comment.