Skip to content

Commit

Permalink
removed the useRef, it's not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado1802 committed Oct 20, 2023
1 parent 1d747c2 commit 1ac3959
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/mobile/app/components/HamburgerMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react-native/no-color-literals */
/* eslint-disable react-native/no-inline-styles */
import React, { useEffect, useRef } from "react"
import React, { useEffect } from "react"
import {
View,
StyleSheet,
Expand Down Expand Up @@ -49,7 +49,6 @@ const HamburgerMenu = observer((props: any) => {
const [showCreateTeamModal, setShowCreateTeamModal] = React.useState(false)
const [isTeamModalOpen, setIsTeamModalOpen] = React.useState<boolean>(false)
const [containerWidth, setContainerWidth] = React.useState(0)
const containerRef = useRef(null)

const { navigation } = props
const isOpen = useDrawerStatus() === "open"
Expand All @@ -70,7 +69,6 @@ const HamburgerMenu = observer((props: any) => {
const { width } = event.nativeEvent.layout
setContainerWidth(width)
}}
ref={containerRef}
onPress={() => setIsTeamModalOpen(false)}
>
<View
Expand Down

0 comments on commit 1ac3959

Please sign in to comment.