Skip to content

Commit fa3c7c5

Browse files
committed
chore: return null
1 parent 04d85b3 commit fa3c7c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const isSameHost = (currentUrl: string, newUrl: string): boolean => {
9595
* HolyLoader is a React component that provides a customizable top-loading progress bar.
9696
*
9797
* @param {HolyLoaderProps} props The properties for configuring the HolyLoader.
98-
* @returns {JSX.Element} The styles element to be rendered.
98+
* @returns {null}
9999
*/
100100
const HolyLoader = ({
101101
color = DEFAULTS.color,
@@ -105,7 +105,7 @@ const HolyLoader = ({
105105
speed = DEFAULTS.speed,
106106
zIndex = DEFAULTS.zIndex,
107107
boxShadow,
108-
}: HolyLoaderProps): JSX.Element => {
108+
}: HolyLoaderProps): null => {
109109
React.useEffect(() => {
110110
let holyProgress: HolyProgress;
111111

@@ -184,7 +184,7 @@ const HolyLoader = ({
184184
};
185185
}, []);
186186

187-
return <></>;
187+
return null;
188188
};
189189

190190
export default HolyLoader;

0 commit comments

Comments
 (0)