aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-styles.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/hooks/use-styles.tsx')
-rw-r--r--src/utils/hooks/use-styles.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils/hooks/use-styles.tsx b/src/utils/hooks/use-styles.tsx
index d47e9fb..a70087b 100644
--- a/src/utils/hooks/use-styles.tsx
+++ b/src/utils/hooks/use-styles.tsx
@@ -20,10 +20,8 @@ export type UseStylesProps = {
*
* @param {UseStylesProps} props - An object with property, styles and target.
*/
-const useStyles = ({ property, styles, target }: UseStylesProps) => {
+export const useStyles = ({ property, styles, target }: UseStylesProps) => {
useEffect(() => {
if (target.current) target.current.style.setProperty(property, styles);
}, [property, styles, target]);
};
-
-export default useStyles;