File tree 1 file changed +12
-0
lines changed
app/javascript/flavours/glitch/features/status/components
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { Permalink } from 'flavours/glitch/components/permalink';
21
21
import PictureInPicturePlaceholder from 'flavours/glitch/components/picture_in_picture_placeholder' ;
22
22
import { useAppHistory } from 'flavours/glitch/components/router' ;
23
23
import { VisibilityIcon } from 'flavours/glitch/components/visibility_icon' ;
24
+ import PollContainer from 'flavours/glitch/containers/poll_container' ;
24
25
import { useAppSelector } from 'flavours/glitch/store' ;
25
26
26
27
import { Avatar } from '../../../components/avatar' ;
@@ -277,6 +278,17 @@ export const DetailedStatus: React.FC<{
277
278
mediaIcons . push ( 'link' ) ;
278
279
}
279
280
281
+ if ( status . get ( 'poll' ) ) {
282
+ contentMedia . push (
283
+ < PollContainer
284
+ pollId = { status . get ( 'poll' ) }
285
+ // @ts -expect-error -- Poll/PollContainer is not typed yet
286
+ lang = { status . get ( 'language' ) }
287
+ /> ,
288
+ ) ;
289
+ contentMediaIcons . push ( 'tasks' ) ;
290
+ }
291
+
280
292
if ( status . get ( 'application' ) ) {
281
293
applicationLink = (
282
294
< >
You can’t perform that action at this time.
0 commit comments