Skip to content

Commit

Permalink
chore: return null
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcru committed Dec 17, 2023
1 parent 04d85b3 commit fa3c7c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const isSameHost = (currentUrl: string, newUrl: string): boolean => {
* HolyLoader is a React component that provides a customizable top-loading progress bar.
*
* @param {HolyLoaderProps} props The properties for configuring the HolyLoader.
* @returns {JSX.Element} The styles element to be rendered.
* @returns {null}
*/
const HolyLoader = ({
color = DEFAULTS.color,
Expand All @@ -105,7 +105,7 @@ const HolyLoader = ({
speed = DEFAULTS.speed,
zIndex = DEFAULTS.zIndex,
boxShadow,
}: HolyLoaderProps): JSX.Element => {
}: HolyLoaderProps): null => {
React.useEffect(() => {
let holyProgress: HolyProgress;

Expand Down Expand Up @@ -184,7 +184,7 @@ const HolyLoader = ({
};
}, []);

return <></>;
return null;
};

export default HolyLoader;

0 comments on commit fa3c7c5

Please sign in to comment.