eslint: use semicolon TypeScript delimeter
This commit is contained in:
@ -16,9 +16,9 @@ const messages = defineMessages({
|
||||
});
|
||||
|
||||
interface IPollFooter {
|
||||
poll: PollEntity
|
||||
showResults: boolean
|
||||
selected: Selected
|
||||
poll: PollEntity;
|
||||
showResults: boolean;
|
||||
selected: Selected;
|
||||
}
|
||||
|
||||
const PollFooter: React.FC<IPollFooter> = ({ poll, showResults, selected }): JSX.Element => {
|
||||
|
||||
@ -15,7 +15,7 @@ const messages = defineMessages({
|
||||
votes: { id: 'poll.votes', defaultMessage: '{votes, plural, one {# vote} other {# votes}}' },
|
||||
});
|
||||
|
||||
const PollPercentageBar: React.FC<{ percent: number, leading: boolean }> = ({ percent, leading }): JSX.Element => {
|
||||
const PollPercentageBar: React.FC<{ percent: number; leading: boolean }> = ({ percent, leading }): JSX.Element => {
|
||||
return (
|
||||
<Motion defaultStyle={{ width: 0 }} style={{ width: spring(percent, { ...presets.gentle, precision: 0.1 }) }}>
|
||||
{({ width }) => (
|
||||
@ -29,7 +29,7 @@ const PollPercentageBar: React.FC<{ percent: number, leading: boolean }> = ({ pe
|
||||
};
|
||||
|
||||
interface IPollOptionText extends IPollOption {
|
||||
percent: number
|
||||
percent: number;
|
||||
}
|
||||
|
||||
const PollOptionText: React.FC<IPollOptionText> = ({ poll, option, index, active, onToggle }) => {
|
||||
@ -95,12 +95,12 @@ const PollOptionText: React.FC<IPollOptionText> = ({ poll, option, index, active
|
||||
};
|
||||
|
||||
interface IPollOption {
|
||||
poll: PollEntity
|
||||
option: PollOptionEntity
|
||||
index: number
|
||||
showResults?: boolean
|
||||
active: boolean
|
||||
onToggle: (value: number) => void
|
||||
poll: PollEntity;
|
||||
option: PollOptionEntity;
|
||||
index: number;
|
||||
showResults?: boolean;
|
||||
active: boolean;
|
||||
onToggle: (value: number) => void;
|
||||
}
|
||||
|
||||
const PollOption: React.FC<IPollOption> = (props): JSX.Element | null => {
|
||||
|
||||
@ -13,8 +13,8 @@ import PollOption from './poll-option';
|
||||
export type Selected = Record<number, boolean>;
|
||||
|
||||
interface IPoll {
|
||||
id: string
|
||||
status?: string
|
||||
id: string;
|
||||
status?: string;
|
||||
}
|
||||
|
||||
const messages = defineMessages({
|
||||
|
||||
Reference in New Issue
Block a user