Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Tweak loading animation on credential list refresh (#900)
Leendert de Borst68471b7c8805
diff --git a/apps/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsx b/apps/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsxindex fca63a7f1..c8e6e1bec 100644--- a/apps/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsx+++ b/apps/browser-extension/src/entrypoints/popup/pages/CredentialsList.tsx@@ -27,7 +27,7 @@ const CredentialsList: React.FC = () => {const { setHeaderButtons } = useHeaderButtons();const [credentials, setCredentials] = useState<Credential[]>([]);const [searchTerm, setSearchTerm] = useState('');- const { showLoading, hideLoading, setIsInitialLoading } = useLoading();+ const { setIsInitialLoading } = useLoading();/*** Loading state with minimum duration for more fluid UX.@@ -82,9 +82,9 @@ const CredentialsList: React.FC = () => {* Manually refresh the credentials list.*/const onManualRefresh = async (): Promise<void> => {- showLoading();+ setIsLoading(true);await onRefresh();- hideLoading();+ setIsLoading(false);};// Set header buttons on mount and clear on unmount