[x] Refactor the VoteOptionTag from /components/politicians/VoteOptionTag to be a shared component.
[x] Remove the old component, and make sure that the new one is used instead.
[x] Include all variations in the Histoire's story
Also, I remove an unused import and refactor a switch case to if-else and add styles for each option, so that we can remove the if (typeof voteOption === 'string') condition.
I think it can be improved this way since it doesn't have any string other than defined in the DefaultVoteOption enum, otherwise, it needs to be a CustomVoteOption as we discussed in the issue. But feel free to give it a comment. 😄
Related to #13
VoteOptionTag
from/components/politicians/VoteOptionTag
to be a shared component.Also, I remove an unused import and refactor a switch case to if-else and add styles for each option, so that we can remove the
if (typeof voteOption === 'string')
condition.I think it can be improved this way since it doesn't have any string other than defined in the
DefaultVoteOption
enum, otherwise, it needs to be aCustomVoteOption
as we discussed in the issue. But feel free to give it a comment. 😄