mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 21:34:04 +03:00
webterm: tune spinner values
This commit is contained in:
parent
8d0ca32c5d
commit
f5089b77eb
@ -2,13 +2,9 @@ import useIsMounted from './lib/useIsMounted';
|
||||
import React from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
// TODO: Tune these values
|
||||
const DELAY_MS = 1000;
|
||||
const FRAME_MS = 200;
|
||||
// Some alternative ASCII spinners:
|
||||
// https://stackoverflow.com/questions/2685435/cooler-ascii-spinners
|
||||
// const CHARS = '⣾⣽⣻⢿⡿⣟⣯⣷';
|
||||
const CHARS = '◴◷◶◵';
|
||||
const FRAME_MS = 250;
|
||||
const CHARS = '|/-\\';
|
||||
|
||||
const Spinner = () => {
|
||||
const [index, setIndex] = useState(0);
|
||||
|
@ -41,13 +41,6 @@ export const Tab = ( { session, name }: TabProps ) => {
|
||||
});
|
||||
}, [session]);
|
||||
|
||||
// TODO: sometimes the pending is not decremented?
|
||||
useEffect(() => {
|
||||
if(session) {
|
||||
console.log(`${session.subscriptionId}: ${session.pending} pending`);
|
||||
}
|
||||
}, [session]);
|
||||
|
||||
return (
|
||||
<div className={'tab ' + (isSelected ? 'selected' : '')} onClick={onClick}>
|
||||
<a className='session-name'>
|
||||
|
Loading…
Reference in New Issue
Block a user