Skip to content

Commit 43a59b1

Browse files
committed
fix: pr review changes
1 parent 7247ca6 commit 43a59b1

File tree

5 files changed

+1
-29
lines changed

5 files changed

+1
-29
lines changed

package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ export const useCreateInputMessageInputContext = <
147147
initialValue,
148148
maxMessageLength,
149149
quotedMessageId,
150-
openPollCreationDialog,
151150
CreatePollContent,
152151
showPollCreationDialog,
153152
],

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,6 @@ const MessageInputWithContext = <
728728
})),
729729
};
730730

731-
// const {
732-
// theme: {
733-
// colors: { white },
734-
// }
735-
// } = useTheme();
736-
737731
return (
738732
<>
739733
<View

package/src/components/Poll/components/PollInputDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const PollInputDialog = ({
8686
};
8787

8888
const styles = StyleSheet.create({
89-
button: { fontSize: 17, fontWeight: '500' },
89+
button: { fontSize: 16, fontWeight: '500' },
9090
buttonContainer: { flexDirection: 'row', justifyContent: 'flex-end', marginTop: 52 },
9191
container: {
9292
backgroundColor: 'white',

package/src/components/Poll/components/PollOption.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,6 @@ export const PollOption = ({ option, showProgressBar = true }: PollOptionProps)
103103
[maxVotedOptionIds, vote_counts_by_option],
104104
);
105105
const votes = vote_counts_by_option[option.id] || 0;
106-
// with the latest llc changes this seems to be working just fine.
107-
// todo: continue testing thoroughly to make sure.
108-
// useEffect(() => {
109-
// if (enableOfflineSupport) {
110-
// const pollState = poll.data;
111-
// dbApi.updateMessage({
112-
// message: {
113-
// ...message,
114-
// // TODO: set the poll response properly here
115-
// poll: {
116-
// ...pollState,
117-
// id: poll.id,
118-
// own_votes: pollState.ownVotes,
119-
// },
120-
// poll_id: poll.id,
121-
// },
122-
// });
123-
// }
124-
// }, [enableOfflineSupport, message, poll, vote_counts_by_option]);
125106

126107
const {
127108
theme: {

package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ export const useCreateMessageInputContext = <
257257
showMoreOptions,
258258
text,
259259
threadId,
260-
openPollCreationDialog,
261-
closePollCreationDialog,
262260
showPollCreationDialog,
263261
],
264262
);

0 commit comments

Comments
 (0)