feedback review
This commit is contained in:
parent
7f9cd287fe
commit
f08ccb2d0c
5 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ const EmojiBar = ({emojiSelected, reactionsByName, setIndex, sortedReactions}: P
|
|||
onPress={onPress}
|
||||
/>
|
||||
);
|
||||
}, [sortedReactions, emojiSelected, reactionsByName]);
|
||||
}, [onPress, emojiSelected, reactionsByName]);
|
||||
|
||||
useEffect(() => {
|
||||
const t = setTimeout(() => {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ const Reaction = ({count, emojiName, highlight, onPress}: ReactionProps) => {
|
|||
|
||||
const handlePress = useCallback(() => {
|
||||
onPress(emojiName);
|
||||
}, [highlight]);
|
||||
}, [onPress, emojiName]);
|
||||
|
||||
return (
|
||||
<TouchableOpacity
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue