mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: update PR based on feedback
This commit is contained in:
		
							parent
							
								
									55de43ad07
								
							
						
					
					
						commit
						14154b605a
					
				| @ -32,7 +32,7 @@ export const useStyles = makeStyles(theme => ({ | |||||||
|         }, |         }, | ||||||
|     }, |     }, | ||||||
|     searchBar: { |     searchBar: { | ||||||
|         minWidth: '450px', |         minWidth: 450, | ||||||
|         [theme.breakpoints.down('xs')]: { |         [theme.breakpoints.down('xs')]: { | ||||||
|             minWidth: '100%', |             minWidth: '100%', | ||||||
|         }, |         }, | ||||||
|  | |||||||
| @ -56,7 +56,7 @@ export const ProjectListNew = () => { | |||||||
|     const filteredProjects = useMemo(() => { |     const filteredProjects = useMemo(() => { | ||||||
|         const regExp = new RegExp(filter, 'i'); |         const regExp = new RegExp(filter, 'i'); | ||||||
|         return filter |         return filter | ||||||
|             ? projects?.filter(project => regExp.test(project?.name)) |             ? projects.filter(project => regExp.test(project.name)) | ||||||
|             : projects; |             : projects; | ||||||
|     }, [projects, filter]); |     }, [projects, filter]); | ||||||
| 
 | 
 | ||||||
| @ -90,7 +90,7 @@ export const ProjectListNew = () => { | |||||||
|             return renderLoading(); |             return renderLoading(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return filteredProjects?.map((project: IProjectCard) => { |         return filteredProjects.map((project: IProjectCard) => { | ||||||
|             return ( |             return ( | ||||||
|                 <Link |                 <Link | ||||||
|                     key={project.id} |                     key={project.id} | ||||||
| @ -166,7 +166,7 @@ export const ProjectListNew = () => { | |||||||
|                 <ConditionallyRender condition={error} show={renderError()} /> |                 <ConditionallyRender condition={error} show={renderError()} /> | ||||||
|                 <div className={styles.container}> |                 <div className={styles.container}> | ||||||
|                     <ConditionallyRender |                     <ConditionallyRender | ||||||
|                         condition={filteredProjects?.length < 1 && !loading} |                         condition={filteredProjects.length < 1 && !loading} | ||||||
|                         show={<div>No projects available.</div>} |                         show={<div>No projects available.</div>} | ||||||
|                         elseShow={renderProjects()} |                         elseShow={renderProjects()} | ||||||
|                     /> |                     /> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user