Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NaingAmity committed Jan 22, 2024
1 parent 3246a32 commit 2183f88
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/screens/CreatePost/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/exhaustive-deps */
import { useNavigation } from '@react-navigation/native';
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
import React, { useEffect, useState } from 'react';
Expand Down Expand Up @@ -80,7 +81,7 @@ const CreatePost = ({ route }: any) => {

// const { data: community, loading, error } = data ?? {};
const videoRef = React.useRef(null);
const { client } = useAuth();
const { client, apiRegion } = useAuth();

const getCommunityDetail = () => {
if (targetType === 'community') {
Expand Down Expand Up @@ -228,7 +229,8 @@ const CreatePost = ({ route }: any) => {
) {
const res = await checkCommunityPermission(
community.communityId,
client as Amity.Client
client as Amity.Client,
apiRegion
);

if (
Expand Down Expand Up @@ -313,7 +315,6 @@ const CreatePost = ({ route }: any) => {
);
setDisplayImages((prev) => [...prev, ...imagesObject]);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [imageMultipleUri]);

const processVideo = async () => {
Expand Down Expand Up @@ -355,8 +356,6 @@ const CreatePost = ({ route }: any) => {
};
useEffect(() => {
processVideo();

// eslint-disable-next-line react-hooks/exhaustive-deps
}, [videoMultipleUri]);

const pickImage = async () => {
Expand Down

0 comments on commit 2183f88

Please sign in to comment.