1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-21 02:41:36 +07:00
verdaccio-ui/src
coolsp 222ffed022 fix: package list refresh based on logged-in user (#415)
* fix: package list refresh based on logged-in user

description:
In `pages/home/Home.tsx` now monitoring any change in a user log-in/out which will trigger a new `API.request` to get the _packages_ from the Verdaccio-server.  This is done by creating a `useEffect` on **isUserLoggedIn**.  Code has been transplanted from `App/App.tsx` including the use of the Loading component during the XHR.  The use of **packages** was removed from other components as no longer needed and tests updated.

Resolves issue #414

* fix: package list refresh based on logged-in user

description:
In `pages/home/Home.tsx` now monitoring any change in a user log-in/out which will trigger a new `API.request` to get the _packages_ from the Verdaccio-server. This is done by creating a `useEffect` on **isUserLoggedIn**. Code has been transplanted from `App/App.tsx` including the use of the Loading component during the XHR. The use of **packages** was removed from other components as no longer needed and tests updated.
Test snapshots updated

Resolves issue #414

Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
2020-01-12 22:21:29 +01:00
..
App fix: package list refresh based on logged-in user (#415) 2020-01-12 22:21:29 +01:00
components fix: package list refresh based on logged-in user (#415) 2020-01-12 22:21:29 +01:00
design-tokens Feat: added "Fund this package" button (#375) 2019-12-18 17:30:42 -03:00
icons fix: introduced SvgIcon (#184) 2019-10-12 11:42:29 +02:00
muiComponents Search Component - Replaced class by func. comp (#339) 2019-12-04 17:09:02 +01:00
pages fix: package list refresh based on logged-in user (#415) 2020-01-12 22:21:29 +01:00
template feat: migrating flow to typescript (#47) 2019-06-20 14:37:28 +02:00
utils fix: generate correct registry URL (#413) 2020-01-09 06:12:50 +01:00
index.tsx feat: Added Theme and migrate to emotion@10.x 🚀 (#286) 2019-11-23 13:41:14 +01:00