Skip to content

Commit d211bd6

Browse files
committed
feat: animate account refresh button
Signed-off-by: Adam Setch <[email protected]>
1 parent 9441968 commit d211bd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/renderer/routes/Accounts.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ export const AccountsRoute: FC = () => {
160160
await refreshAccount(account);
161161
navigate('/accounts', { replace: true });
162162

163-
// typically the above completes very quickly, so add an artificial delay to allow the spinner to do a few loops
163+
/**
164+
* Typically the above refresh API call completes very quickly,
165+
* so we add an brief artificial delay to allow the icon to spin a few times
166+
*/
164167
setTimeout(() => {
165168
button.classList.remove('animate-spin');
166169
}, 500);

0 commit comments

Comments
 (0)