Skip to content

Commit 588cb03

Browse files
gnpricechrisbobbe
authored andcommitted
shared [nfc]: Import shared code consistently like web does
In the case of `poll_data.PollData` this isn't strictly necessary, but for some other modules it's essential -- for example while `typing_status.update` is a perfectly reasonable name, importing that with a name of simply `update` would be terribly confusing. Best to just be consistent.
1 parent 27ef1d9 commit 588cb03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webview/html/message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PixelRatio } from 'react-native';
33
import invariant from 'invariant';
44
import formatDistanceToNow from 'date-fns/formatDistanceToNow';
55
// $FlowFixMe[untyped-import]
6-
import { PollData } from '@zulip/shared/js/poll_data';
6+
import * as poll_data from '@zulip/shared/js/poll_data';
77

88
import template from './template';
99
import type {
@@ -136,7 +136,7 @@ $!${message.content}
136136
return template`$!${message.content}`;
137137
}
138138
139-
const pollData = new PollData({
139+
const pollData = new poll_data.PollData({
140140
message_sender_id: message.sender_id,
141141
current_user_id: ownUserId,
142142
is_my_poll: message.sender_id === ownUserId,

0 commit comments

Comments
 (0)