mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
fix: Replace animated progress with loading text to save CPU
This commit is contained in:
parent
eed722084f
commit
23e85ad676
1 changed files with 6 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ import SimpleBar from 'simplebar-react';
|
|||
import 'simplebar/dist/simplebar.min.css';
|
||||
|
||||
import Button from '@material-ui/core/Button';
|
||||
import CircularProgress from '@material-ui/core/CircularProgress';
|
||||
import IconButton from '@material-ui/core/IconButton';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
|
||||
|
|
@ -347,7 +346,12 @@ const Main = ({
|
|||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{Object.keys(workspaces).length > 0 && isLoading && <CircularProgress size={24} />}
|
||||
{Object.keys(workspaces).length > 0 && isLoading && (
|
||||
<Typography type="body1" color="textSecondary">
|
||||
size={24}
|
||||
Loading... />
|
||||
</Typography>
|
||||
)}
|
||||
{Object.keys(workspaces).length < 1 && (
|
||||
<div>
|
||||
{sidebar ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue