Use API to get prompt values

Summary: To keep it in sync with the JS implementation.

Reviewed By: danielbuechele

Differential Revision: D17208786

fbshipit-source-id: 8d89f33bfef22317266a0ad1e0c5689540d54f9e
This commit is contained in:
John Knox
2019-09-06 08:31:18 -07:00
committed by Facebook Github Bot
parent 612cfd81ae
commit be22cc711a
2 changed files with 58 additions and 12 deletions

View File

@@ -10,6 +10,8 @@ export type FeedbackPrompt = {
postSubmitHeading: string;
commentPlaceholder: string;
bodyText: string;
predefinedComments: Array<string>;
shouldPopup: boolean;
};
export async function submitRating(rating: number): Promise<void> {
@@ -26,6 +28,3 @@ export async function submitComment(
export async function getPrompt(): Promise<FeedbackPrompt> {
throw new Error('Method not implemented.');
}
export async function shouldShowPrompt(): Promise<boolean> {
throw new Error('Method not implemented.');
}