fix(window-size): remove checks for initial 0 width

This commit is contained in:
RadoslavDimchev 2024-02-01 20:48:33 +02:00 committed by Radoslav Dimchev
parent cfa34de8cc
commit 2ea3785f10
2 changed files with 0 additions and 8 deletions

View File

@ -32,10 +32,6 @@ const EmojiPickerDialog = ({ emojiStyle, changeEmoji }: EmojiPickerProps) => {
}
}
if (windowSize.width === 0) {
return null
}
return (
<Stack position="absolute" zIndex={1} left={100} top={-150}>
<EmojiPicker

View File

@ -6,10 +6,6 @@ import styles from '../index.module.css'
const KeyGenerationHeader = () => {
const windowSize = useWindowSize()
if (windowSize.width <= 0) {
return null
}
return (
<div className={styles['header']}>
<KeyGenerationTitle />