{isLoading || globalIsLoading &&
Loading...
}
-
{
globalData &&
@@ -47,7 +35,6 @@ const CoinList = (): JSX.Element => {
}
-
{
data && isSuccess &&
@@ -84,7 +71,7 @@ const CoinList = (): JSX.Element => {
{
- data.map((row: IData, index: number) => (
+ data.map((row: ICoinsListItem, index: number) => (
{
const { page, per_page, } = props;
- const { data, error, isLoading, isSuccess, refetch } = useGetCoinsCountQuery();
+ const { data, error, isLoading, isSuccess } = useGetCoinsCountQuery();
const navigate = useNavigate();
const lastPage = (data: number) => Math.ceil(data / per_page)
diff --git a/Front/src/index.css b/Front/src/index.css
index 606d554..9dac1fe 100644
--- a/Front/src/index.css
+++ b/Front/src/index.css
@@ -10,7 +10,7 @@ body {
a {
text-decoration: none;
- color: rgb(59, 84, 177)
+ color: #1976d2;
}
.coin-list a {
diff --git a/Front/src/store.ts b/Front/src/store.ts
index e661663..825b2be 100644
--- a/Front/src/store.ts
+++ b/Front/src/store.ts
@@ -2,12 +2,9 @@ import { combineReducers, configureStore } from '@reduxjs/toolkit'
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';
import { coinListApi } from './coinApi';
-// import listSliceReducer from './chartList/chartList-slice'
-
// Reducers
const rootReducer = combineReducers({
-// list: listSliceReducer,
[coinListApi.reducerPath]: coinListApi.reducer,
})