Interface: VoteButtonProps
VoteButton.VoteButtonProps
Hierarchy
-
Pick
<LoadingButtonProps
,Exclude
<keyofLoadingButtonProps
,"onClick"
|"disabled"
|"loading"
>>↳
VoteButtonProps
Indexable
▪ [p: string
]: any
Others properties
Properties
contribution
• Optional
contribution: SCCommentType
| SCFeedObjectType
Contribution object to vote
Default
null
Defined in
packages/react-ui/src/components/VoteButton/VoteButton.tsx:51
contributionId
• contributionId: number
Id of the contribution object to vote
Default
null
Defined in
packages/react-ui/src/components/VoteButton/VoteButton.tsx:41
contributionType
• contributionType: SCContributionType
Type of the contribution object to vote
Default
null
Defined in
packages/react-ui/src/components/VoteButton/VoteButton.tsx:46
onVote
• Optional
onVote: (contribution
: SCCommentType
| SCFeedObjectType
) => any
Type declaration
▸ (contribution
): any
onVote callback
Parameters
Name | Type |
---|---|
contribution | SCCommentType | SCFeedObjectType |
Returns
any
Default
null
Defined in
packages/react-ui/src/components/VoteButton/VoteButton.tsx:57