diff --git a/phone/package.json b/phone/package.json index 5487023..e05667c 100644 --- a/phone/package.json +++ b/phone/package.json @@ -16,7 +16,7 @@ "dompurify": "^2.2.6", "emoji-mart": "^3.0.1", "enzyme": "^3.11.0", - "fivem-nui-react-lib": "2.2.6", + "fivem-nui-react-lib": "^2.2.8", "howler": "^2.2.1", "i18next": "^19.7.0", "jsonschema": "^1.4.0", diff --git a/phone/src/apps/match/components/MatchApp.tsx b/phone/src/apps/match/components/MatchApp.tsx index 55872bc..63385c9 100644 --- a/phone/src/apps/match/components/MatchApp.tsx +++ b/phone/src/apps/match/components/MatchApp.tsx @@ -23,7 +23,7 @@ export const MatchApp = () => { useEffect(() => { Nui.send(MatchEvents.INITIALIZE); - }, []); + }, [Nui]); const handlePageChange = (e, page) => setActivePage(page); diff --git a/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx b/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx index 8a168ef..1cc44b4 100644 --- a/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx +++ b/phone/src/apps/twitter/components/tweet/TweetListContainer.tsx @@ -12,7 +12,7 @@ export function TweetListContainer() { useEffect(() => { Nui.send(TwitterEvents.FETCH_TWEETS, {}); - }, []); + }, [Nui]); useEffect(() => { if (tweets?.length) { diff --git a/phone/yarn.lock b/phone/yarn.lock index a2df0c3..b8d4be4 100644 --- a/phone/yarn.lock +++ b/phone/yarn.lock @@ -5411,12 +5411,10 @@ find-up@^3.0.0: dependencies: locate-path "^3.0.0" -fivem-nui-react-lib@2.2.6: - version "2.2.6" - resolved "https://registry.yarnpkg.com/fivem-nui-react-lib/-/fivem-nui-react-lib-2.2.6.tgz#2ffc01aee5a01aeb444c7c404e3e2b374b9798d7" - integrity sha512-h8WJsyP7/VehkmRdfs9/pjGK73LmZSEeWH4kW0Mo9InC0qIulcTfJnnvdp40fIJ6SSCZLjteSQrUN6f+ZUoKdA== - dependencies: - typescript "^4.1.2" +fivem-nui-react-lib@^2.2.8: + version "2.2.8" + resolved "https://registry.yarnpkg.com/fivem-nui-react-lib/-/fivem-nui-react-lib-2.2.8.tgz#41df54b37cbb61806f44a5d426e4c5ec6387fde9" + integrity sha512-8eeCp3J1yS4ymFpRwig72dcIJviF+63ug1j4GBZXBzo1QmKyDjRCR36HwBhl2YKYgYyC4sJbTSeT+k6T61F3Fg== flat-cache@^3.0.4: version "3.0.4" @@ -11686,11 +11684,6 @@ typescript@3.9.7: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== -typescript@^4.1.2: - version "4.2.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3" - integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw== - unbox-primitive@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.0.tgz#eeacbc4affa28e9b3d36b5eaeccc50b3251b1d3f"