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',
|
||||
});
|
||||
|
||||
type FeedbackComponentState = {
|
||||
rating: number | null;
|
||||
hoveredRating: number;
|
||||
allowUserInfoSharing: boolean;
|
||||
nextAction: NextAction;
|
||||
predefinedComments: {[key: string]: boolean};
|
||||
comment: string;
|
||||
};
|
||||
|
||||
class FeedbackComponent extends Component<
|
||||
{
|
||||
submitRating: (rating: number) => void;
|
||||
@@ -84,16 +93,9 @@ class FeedbackComponent extends Component<
|
||||
close(): void;
|
||||
promptData: FeedbackPrompt;
|
||||
},
|
||||
{
|
||||
rating: number | null;
|
||||
hoveredRating: number;
|
||||
allowUserInfoSharing: boolean;
|
||||
nextAction: NextAction;
|
||||
predefinedComments: {[key: string]: boolean};
|
||||
comment: string;
|
||||
}
|
||||
FeedbackComponentState
|
||||
> {
|
||||
state = {
|
||||
state: FeedbackComponentState = {
|
||||
rating: null,
|
||||
hoveredRating: 0,
|
||||
allowUserInfoSharing: true,
|
||||
|
||||
Reference in New Issue
Block a user