From 44b3382a9b668717bc8a3476d34f6db6bd9c8d53 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 21 Jul 2023 15:32:58 +0200 Subject: [PATCH] Implement RSC support --- src/TimeInput.tsx | 2 ++ src/TimePicker.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/TimeInput.tsx b/src/TimeInput.tsx index 0a588039..46146594 100644 --- a/src/TimeInput.tsx +++ b/src/TimeInput.tsx @@ -1,3 +1,5 @@ +'use client'; + import React, { useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { diff --git a/src/TimePicker.tsx b/src/TimePicker.tsx index 9365babd..73321e0f 100644 --- a/src/TimePicker.tsx +++ b/src/TimePicker.tsx @@ -1,3 +1,5 @@ +'use client'; + import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; import PropTypes from 'prop-types';