1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-03-31 02:51:36 +02:00

Don't show updates button when loading

This commit is contained in:
Lim Chee Aun 2023-01-31 11:24:46 +08:00
parent e282f5df2a
commit 4ed2852c41
2 changed files with 2 additions and 1 deletions

View file

@ -357,6 +357,7 @@ function Home({ hidden }) {
</div> </div>
</header> </header>
{snapStates.homeNew.length > 0 && {snapStates.homeNew.length > 0 &&
uiState !== 'loading' &&
((scrollDirection === 'start' && ((scrollDirection === 'start' &&
!nearReachStart && !nearReachStart &&
!nearReachEnd) || !nearReachEnd) ||

View file

@ -151,7 +151,7 @@ function Notifications() {
<Loader hidden={uiState !== 'loading'} /> <Loader hidden={uiState !== 'loading'} />
</div> </div>
</header> </header>
{snapStates.notificationsNew.length > 0 && ( {snapStates.notificationsNew.length > 0 && uiState !== 'loading' && (
<button <button
class="updates-button" class="updates-button"
type="button" type="button"