RatingButton
Summary: _typescript_ Reviewed By: jknoxville Differential Revision: D17282354 fbshipit-source-id: 6d65a2735973cb46c133f2e38574d457e2aa484a
This commit is contained in:
committed by
Facebook Github Bot
parent
ac120aa59c
commit
0e6ba5c4e2
@@ -72,6 +72,15 @@ const Row = styled(FlexRow)({
|
|||||||
flexWrap: 'wrap',
|
flexWrap: 'wrap',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
type FeedbackComponentState = {
|
||||||
|
rating: number | null;
|
||||||
|
hoveredRating: number;
|
||||||
|
allowUserInfoSharing: boolean;
|
||||||
|
nextAction: NextAction;
|
||||||
|
predefinedComments: {[key: string]: boolean};
|
||||||
|
comment: string;
|
||||||
|
};
|
||||||
|
|
||||||
class FeedbackComponent extends Component<
|
class FeedbackComponent extends Component<
|
||||||
{
|
{
|
||||||
submitRating: (rating: number) => void;
|
submitRating: (rating: number) => void;
|
||||||
@@ -84,16 +93,9 @@ class FeedbackComponent extends Component<
|
|||||||
close(): void;
|
close(): void;
|
||||||
promptData: FeedbackPrompt;
|
promptData: FeedbackPrompt;
|
||||||
},
|
},
|
||||||
{
|
FeedbackComponentState
|
||||||
rating: number | null;
|
|
||||||
hoveredRating: number;
|
|
||||||
allowUserInfoSharing: boolean;
|
|
||||||
nextAction: NextAction;
|
|
||||||
predefinedComments: {[key: string]: boolean};
|
|
||||||
comment: string;
|
|
||||||
}
|
|
||||||
> {
|
> {
|
||||||
state = {
|
state: FeedbackComponentState = {
|
||||||
rating: null,
|
rating: null,
|
||||||
hoveredRating: 0,
|
hoveredRating: 0,
|
||||||
allowUserInfoSharing: true,
|
allowUserInfoSharing: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user