Fix expiring polls not being displayed as such in the WebUI (#11835)
Fix expiring polls not being displayed as such in the WebUI (#11835)

* Fix expiring polls not being displayed as such in the WebUI

* Reset expiration state and timer when a poll changes

* Refactor timer logic in `_setupTimer`, only set expiration if props have changed

* Refactor and do not use deprecated React lifecycles

MitarashiDango/mastodon,lindwurm/mastodon,danhunsaker/mastodon,Ryanaka/mastodon,masto-donte-com-br/mastodon,primenumber/mastodon,tri-star/mastodon,lindwurm/mastodon,Kirishima21/mastodon,masto-donte-com-br/mastodon,glitch-soc/mastodon,lynlynlynx/mastodon,abcang/mastodon,tri-star/mastodon,d6rkaiz/mastodon,tootcafe/mastodon,pinfort/mastodon,yukimochi/mastodon,dunn/mastodon,masto-donte-com-br/mastodon,danhunsaker/mastodon,dunn/mastodon,kirakiratter/mastodon,pinfort/mastodon,5thfloor/ichiji-social,Kirishima21/mastodon,cobodo/mastodon,glitch-soc/mastodon,primenumber/mastodon,sylph-sin-tyaku/mastodon,MitarashiDango/mastodon,gol-cha/mastodon,im-in-space/mastodon,yukimochi/mastodon,yi0713/mastodon,sylph-sin-tyaku/mastodon,rainyday/mastodon,ikuradon/mastodon,sylph-sin-tyaku/mastodon,ikuradon/mastodon,kazh98/social.arnip.org,d6rkaiz/mastodon,ykzts/mastodon,abcang/mastodon,kazh98/social.arnip.org,kirakiratter/mastodon,rainyday/mastodon,dunn/mastodon,tootsuite/mastodon,maa123/mastodon,musashino205/mastodon,MitarashiDango/mastodon,primenumber/mastodon,rainyday/mastodon,musashino205/mastodon,primenumber/mastodon,cobodo/mastodon,h3zjp/mastodon,theoria24/mastodon,imas/mastodon,MitarashiDango/mastodon,masto-donte-com-br/mastodon,gol-cha/mastodon,koba-lab/mastodon,theoria24/mastodon,yukimochi/mastodon,yi0713/mastodon,Nyoho/mastodon,yi0713/mastodon,imas/mastodon,Ryanaka/mastodon,maa123/mastodon,5thfloor/ichiji-social,lynlynlynx/mastodon,pinfort/mastodon,gol-cha/mastodon,tootcafe/mastodon,musashino205/mastodon,tri-star/mastodon,pinfort/mastodon,h3zjp/mastodon,im-in-space/mastodon,kirakiratter/mastodon,gol-cha/mastodon,kazh98/social.arnip.org,kazh98/social.arnip.org,musashino205/mastodon,danhunsaker/mastodon,lynlynlynx/mastodon,Kirishima21/mastodon,cobodo/mastodon,theoria24/mastodon,tri-star/mastodon,cobodo/mastodon,yukimochi/mastodon,maa123/mastodon,5thfloor/ichiji-social,Ryanaka/mastodon,Ryanaka/mastodon,lindwurm/mastodon,d6rkaiz/mastodon,tootcafe/mastodon,dunn/mastodon,ykzts/mastodon,sylph-sin-tyaku/mastodon,tootsuite/mastodon,abcang/mastodon,glitch-soc/mastodon,yi0713/mastodon,koba-lab/mastodon,h3zjp/mastodon,d6rkaiz/mastodon,Nyoho/mastodon,tootsuite/mastodon,koba-lab/mastodon,im-in-space/mastodon,tootcafe/mastodon,Nyoho/mastodon,kirakiratter/mastodon,imas/mastodon,ikuradon/mastodon,abcang/mastodon,danhunsaker/mastodon,Kirishima21/mastodon,Nyoho/mastodon,ykzts/mastodon,imas/mastodon,5thfloor/ichiji-social,glitch-soc/mastodon,theoria24/mastodon,maa123/mastodon,lindwurm/mastodon,koba-lab/mastodon,tootsuite/mastodon,ikuradon/mastodon,ykzts/mastodon,im-in-space/mastodon,h3zjp/mastodon,rainyday/mastodon,lynlynlynx/mastodon