search bar loading bug (#10618)

This commit is contained in:
Rudhra Deep Biswas 2024-08-12 14:13:30 +05:30 committed by GitHub
parent 18b275e7ef
commit a04131399f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,6 @@ import { getQueryParams } from '@/_helpers/routes';
import { withRouter } from '@/_hoc/withRouter';
import FolderFilter from './FolderFilter';
import { APP_ERROR_TYPE } from '@/_helpers/error_constants';
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
import { fetchAndSetWindowTitle, pageTitles } from '@white-label/whiteLabelling';
import HeaderSkeleton from '@/_ui/FolderSkeleton/HeaderSkeleton';
@ -857,8 +856,12 @@ class HomePageComponent extends React.Component {
{isLoading && !appSearchKey && <HeaderSkeleton />}
{(meta?.total_count > 0 || appSearchKey) && (
<>
<HomeHeader onSearchSubmit={this.onSearchSubmit} darkMode={this.props.darkMode} />
<div className="liner"></div>
{!(isLoading && !appSearchKey) && (
<>
<HomeHeader onSearchSubmit={this.onSearchSubmit} darkMode={this.props.darkMode} />
<div className="liner"></div>
</>
)}
<div className="filter-container">
<span>{currentFolder?.count ?? meta?.total_count} APPS</span>
<div className="d-flex align-items-center">