Added loader while loading transactions
This commit is contained in:
parent
4299f57e2d
commit
93288d1413
@ -35,7 +35,7 @@ export function CorporateDashboard() {
|
|||||||
const {
|
const {
|
||||||
data: transactionsResponse,
|
data: transactionsResponse,
|
||||||
refetch,
|
refetch,
|
||||||
isLoading,
|
isFetching,
|
||||||
} = useFetchCorporateTransactionsQuery(request);
|
} = useFetchCorporateTransactionsQuery(request);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -163,7 +163,7 @@ export function CorporateDashboard() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<TransactionsTable
|
<TransactionsTable
|
||||||
isLoading={isLoading}
|
isLoading={isFetching}
|
||||||
data={
|
data={
|
||||||
transactionsResponse || {
|
transactionsResponse || {
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
|||||||
@ -36,7 +36,7 @@ export function CustomerDashboard() {
|
|||||||
const {
|
const {
|
||||||
data: transactionsResponse,
|
data: transactionsResponse,
|
||||||
refetch,
|
refetch,
|
||||||
isLoading: isTransactionLoading,
|
isFetching: isTransactionLoading,
|
||||||
} = useFetchBonusTransactionsQuery(request);
|
} = useFetchBonusTransactionsQuery(request);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user