mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Merge branch 'main' into fix/clear-query-params
This commit is contained in:
		
						commit
						dc5bd8dc0e
					
				@ -46,7 +46,7 @@ export const ApplicationList = () => {
 | 
				
			|||||||
    return (
 | 
					    return (
 | 
				
			||||||
        <>
 | 
					        <>
 | 
				
			||||||
            <div className={commonStyles.searchField}>
 | 
					            <div className={commonStyles.searchField}>
 | 
				
			||||||
                <SearchField value={filter} updateValue={setFilter} />
 | 
					                <SearchField initialValue={filter} updateValue={setFilter} />
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <PageContent headerContent={<HeaderTitle title="Applications" />}>
 | 
					            <PageContent headerContent={<HeaderTitle title="Applications" />}>
 | 
				
			||||||
                <div className={commonStyles.fullwidth}>
 | 
					                <div className={commonStyles.fullwidth}>
 | 
				
			||||||
 | 
				
			|||||||
@ -7,10 +7,10 @@ import SearchIcon from '@material-ui/icons/Search';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { useStyles } from './styles';
 | 
					import { useStyles } from './styles';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function SearchField({ updateValue, className = '' }) {
 | 
					function SearchField({ initialValue = '', updateValue, className = '' }) {
 | 
				
			||||||
    const styles = useStyles();
 | 
					    const styles = useStyles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const [localValue, setLocalValue] = useState('');
 | 
					    const [localValue, setLocalValue] = useState(initialValue);
 | 
				
			||||||
    const debounceUpdateValue = debounce(updateValue, 500);
 | 
					    const debounceUpdateValue = debounce(updateValue, 500);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const handleChange = e => {
 | 
					    const handleChange = e => {
 | 
				
			||||||
 | 
				
			|||||||
@ -107,6 +107,7 @@ const FeatureToggleList = ({
 | 
				
			|||||||
        <div className={styles.featureContainer}>
 | 
					        <div className={styles.featureContainer}>
 | 
				
			||||||
            <div className={styles.searchBarContainer}>
 | 
					            <div className={styles.searchBarContainer}>
 | 
				
			||||||
                <SearchField
 | 
					                <SearchField
 | 
				
			||||||
 | 
					                    initialValue={filter.query}
 | 
				
			||||||
                    updateValue={setFilterQuery}
 | 
					                    updateValue={setFilterQuery}
 | 
				
			||||||
                    className={classnames(styles.searchBar, {
 | 
					                    className={classnames(styles.searchBar, {
 | 
				
			||||||
                        skeleton: loading,
 | 
					                        skeleton: loading,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user