Skip to content

Commit

Permalink
added a loader to the profiles statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewakiv committed Dec 16, 2024
1 parent 994de3e commit 5178f87
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import axios from 'axios';
import useSWR from 'swr';
import { Descriptions } from 'antd';
import Loader from '../../../components/Loader/Loader';
import css from './ProfilesStatistics.module.css';

async function fetcher(url) {
Expand Down Expand Up @@ -40,7 +41,7 @@ function ProfilesStatistics() {

return isLoading ? (
<div className={css['loader-container']}>
Loading...
<Loader />
</div>
) : error ? (
<div className={css['error']}>Не вдалося отримати статистику компаній</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@
padding: 10px;
border-radius: 4px;
margin-top: 10px;
}

.loader-container {
width: 200px;
height: 300px;
}
7 changes: 7 additions & 0 deletions FrontEnd/src/pages/CustomThemes/customAdminTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ const customAdminTheme = {
Table: {
lineWidth: 3,
colorPrimary: '#1f9a7c'
},
Carousel: {
colorBgContainer: '#B4D27A',
dotActiveWidth: 32,
dotWidth: 32,
dotHeight: 6,
lineHeight: 1,
}
},
};
Expand Down

0 comments on commit 5178f87

Please sign in to comment.