mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
isClient hack removal and type adjustment for "older" lib
This commit is contained in:
@@ -133,8 +133,6 @@ const ShareModal = (props: ShareModalProps) => {
|
||||
setStream(val.toString());
|
||||
}}
|
||||
placeholder="Pick a stream"
|
||||
onBlur={() => {}}
|
||||
onFocus={() => {}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -147,8 +145,6 @@ const ShareModal = (props: ShareModalProps) => {
|
||||
value={topic}
|
||||
onChange={(val) => setTopic(val.toString())}
|
||||
placeholder="Pick a topic"
|
||||
onBlur={() => {}}
|
||||
onFocus={() => {}}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -44,11 +44,7 @@ import {
|
||||
} from "@chakra-ui/react";
|
||||
const TranscriptCreate = () => {
|
||||
|
||||
const [isClient, setIsClient] = useState(false);
|
||||
useEffect(() => {
|
||||
// next SSR
|
||||
setIsClient(true);
|
||||
}, []);
|
||||
const isClient = typeof window === 'undefined';
|
||||
const router = useRouter();
|
||||
const { isLoading, isAuthenticated } = useSessionStatus();
|
||||
const requireLogin = featureEnabled("requireLogin");
|
||||
@@ -183,8 +179,6 @@ const TranscriptCreate = () => {
|
||||
value={targetLanguage}
|
||||
onChange={onLanguageChange}
|
||||
placeholder="Choose your language"
|
||||
onBlur={() => {}}
|
||||
onFocus={() => {}}
|
||||
/>
|
||||
</Box>
|
||||
{isClient && !loading ? (
|
||||
|
||||
Reference in New Issue
Block a user