Skip to content

Commit

Permalink
refactor: use telescope's Spinner component instead of Material-ui's
Browse files Browse the repository at this point in the history
  • Loading branch information
manekenpix committed Sep 24, 2020
1 parent f0606e8 commit 30d3640
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/frontend/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState, useRef, useCallback } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { CircularProgress, Button, Grid } from '@material-ui/core';
import { Button, Grid } from '@material-ui/core';
import parse from 'parse-link-header';

import PageBase from './PageBase';
Expand All @@ -9,6 +9,7 @@ import Posts from '../components/Posts';
import ScrollToTop from '../components/ScrollToTop';
import useSiteMetaData from '../hooks/use-site-metadata';
import CustomizedSnackBar from '../components/SnackBar';
import Spinner from '../components/Spinner';

const useStyles = makeStyles((theme) => ({
content: {
Expand Down Expand Up @@ -156,7 +157,7 @@ export default function IndexPage() {
return 'No more posts. Your turn! Add your feed...';
}
if (loading) {
return <CircularProgress color="secondary" size={24} />;
return <Spinner />;
}
return 'Load More Posts';
}
Expand Down

0 comments on commit 30d3640

Please sign in to comment.