|
@@ -1,9 +1,10 @@
|
|
|
-import React, {
|
|
|
|
|
- Ref, useEffect, useState,
|
|
|
|
|
-} from 'react';
|
|
|
|
|
|
|
+import type { Ref } from 'react';
|
|
|
|
|
+import React, { useEffect, useState } from 'react';
|
|
|
|
|
|
|
|
import type { SWRInfiniteResponse } from 'swr/infinite';
|
|
import type { SWRInfiniteResponse } from 'swr/infinite';
|
|
|
|
|
|
|
|
|
|
+import { LoadingSpinnerPulse } from './LoadingSpinnerPulse';
|
|
|
|
|
+
|
|
|
type Props<T> = {
|
|
type Props<T> = {
|
|
|
swrInifiniteResponse: SWRInfiniteResponse<T>
|
|
swrInifiniteResponse: SWRInfiniteResponse<T>
|
|
|
children: React.ReactNode,
|
|
children: React.ReactNode,
|
|
@@ -32,7 +33,7 @@ const useIntersection = <E extends HTMLElement>(): [boolean, Ref<E>] => {
|
|
|
const LoadingIndicator = (): React.ReactElement => {
|
|
const LoadingIndicator = (): React.ReactElement => {
|
|
|
return (
|
|
return (
|
|
|
<div className="text-muted text-center">
|
|
<div className="text-muted text-center">
|
|
|
- <span className="me-1"><LoadingSpinnerPulse /></span>
|
|
|
|
|
|
|
+ <span className="me-1 fs-3"><LoadingSpinnerPulse /></span>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|