feedback review

This commit is contained in:
Elias Nahum 2022-03-23 15:16:14 -03:00
parent 7f9cd287fe
commit f08ccb2d0c
No known key found for this signature in database
GPG key ID: E038DB71E0B61702
5 changed files with 5 additions and 5 deletions

View file

@ -63,7 +63,7 @@ export const addReaction = async (serverUrl: string, postId: string, emojiName:
user_id: currentUserId,
post_id: postId,
emoji_name: emojiAlias,
create_at: Date.now(),
create_at: 0,
} as Reaction,
};
} catch (error) {

View file

@ -149,7 +149,7 @@ const Reactions = ({currentUserId, canAddReaction, canRemoveReaction, disabled,
showModalOverCurrentContext(screen, passProps);
}
}
}, [intl, postId, theme]);
}, [intl, isTablet, postId, theme]);
let addMoreReactions = null;
const {reactionsByName, highlightedReactions} = buildReactionsMap();

View file

@ -60,7 +60,7 @@ const EmojiBar = ({emojiSelected, reactionsByName, setIndex, sortedReactions}: P
onPress={onPress}
/>
);
}, [sortedReactions, emojiSelected, reactionsByName]);
}, [onPress, emojiSelected, reactionsByName]);
useEffect(() => {
const t = setTimeout(() => {

View file

@ -51,7 +51,7 @@ const Reaction = ({count, emojiName, highlight, onPress}: ReactionProps) => {
const handlePress = useCallback(() => {
onPress(emojiName);
}, [highlight]);
}, [onPress, emojiName]);
return (
<TouchableOpacity

View file

@ -19,8 +19,8 @@ type Props = {
const ReactorsList = ({reactions}: Props) => {
const serverUrl = useServerUrl();
const [enabled, setEnabled] = useState(false);
const listRef = useRef<FlatList>(null);
const [direction, setDirection] = useState<'down' | 'up'>('down');
const listRef = useRef<FlatList>(null);
const prevOffset = useRef(0);
const panResponder = useRef(PanResponder.create({
onMoveShouldSetPanResponderCapture: (evt, g) => {