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:
committed by
Facebook Github Bot
parent
612cfd81ae
commit
be22cc711a
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user