diff --git a/src/widgets/pull-to-refresh/pull-to-refresh.tsx b/src/widgets/pull-to-refresh/pull-to-refresh.tsx index a00ce19..1611e9d 100644 --- a/src/widgets/pull-to-refresh/pull-to-refresh.tsx +++ b/src/widgets/pull-to-refresh/pull-to-refresh.tsx @@ -1,5 +1,3 @@ -/* eslint-disable react-hooks/exhaustive-deps */ -/* eslint-disable @cspell/spellchecker */ // import './main.scss'; import { JSX } from 'react/jsx-runtime'; import { DIRECTION } from './types'; @@ -209,7 +207,7 @@ export const PullToRefresh: React.FC = ({ // pullDownRef.current!.style.opacity = (yDistanceMoved / 65).toString(); childrenRef.current!.style.overflow = 'visible'; childrenRef.current!.style.transform = `translate(0px, ${appr(yDistanceMoved)}px)`; - // pullDownRef.current!.style.visibility = 'visible'; + pullDownRef.current!.style.visibility = 'visible'; }; const onEnd = (): void => { @@ -235,11 +233,18 @@ export const PullToRefresh: React.FC = ({ return (
{ - /* -
-
{refreshingContent}
+ +
+
{refreshingContent}
- */ + }
{children} diff --git a/src/widgets/pull-to-refresh/refreshing-content.tsx b/src/widgets/pull-to-refresh/refreshing-content.tsx index b0e27a4..c75d60d 100644 --- a/src/widgets/pull-to-refresh/refreshing-content.tsx +++ b/src/widgets/pull-to-refresh/refreshing-content.tsx @@ -4,7 +4,10 @@ import './refreshing-content.scss'; export const RefreshingContent = () => { return ( -
+
diff --git a/src/widgets/pull-to-refresh/refreshing-loading.tsx b/src/widgets/pull-to-refresh/refreshing-loading.tsx new file mode 100644 index 0000000..40c17aa --- /dev/null +++ b/src/widgets/pull-to-refresh/refreshing-loading.tsx @@ -0,0 +1,27 @@ +import { CSSProperties, useState } from 'react'; +import { FadeLoader } from 'react-spinners'; + +const override: CSSProperties = { + position: 'fixed', + display: 'block', + margin: '0 auto', + top: '50%', + left: '50%', + zIndex: 2000 +}; +export const RefreshingLoading = () => { + let [loading, setLoading] = useState(false); + let [color, setColor] = useState('#0b0606'); + + return ( + <> + + + ); +}; \ No newline at end of file