fix incorrectly resolved conflicts

This commit is contained in:
Felicio Mununga 2023-05-15 21:29:36 +02:00
parent 202d1b423c
commit a8ec304f74
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
3 changed files with 6 additions and 16 deletions

View File

@ -29,7 +29,7 @@ const updateProperty = (property: string, value: number) => {
}
function App() {
const [loading, setLoading] = useState(false)
const [loading /*, setLoading*/] = useState(false)
const [showMembers, setShowMembers] = useState(false)
// TODO: Use it to simulate loading
@ -61,14 +61,14 @@ function App() {
useResizeObserver<HTMLDivElement>({
ref: topbarRef,
onResize({ height }) {
updateProperty('--topbar-height', height)
updateProperty('--topbar-height', height!)
},
})
useResizeObserver<HTMLDivElement>({
ref: composerRef,
onResize({ height }) {
updateProperty('--composer-height', height)
updateProperty('--composer-height', height!)
},
})
@ -77,7 +77,7 @@ function App() {
})
useEffect(() => {
contentRef.current.scrollTop = contentRef.current.scrollHeight
contentRef.current!.scrollTop = contentRef.current!.scrollHeight
}, [selectedChannel])
return (
@ -97,7 +97,7 @@ function App() {
<div id="topbar" ref={topbarRef}>
<Topbar
blur={scrollPosition !== 'top'}
channel={selectedChannel}
channel={selectedChannel!}
showMembers={showMembers}
onMembersPress={() => setShowMembers(show => !show)}
pinnedMessages={[

View File

@ -16,7 +16,7 @@ export function useScrollPosition(options: Options) {
positionRef.current = position
useEffect(() => {
const node = ref.current
const node = ref.current!
const handleScroll = () => {
if (!node) return

View File

@ -3,17 +3,7 @@
"compilerOptions": {
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx"
},
"include": ["src"]