-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
11 changed files
with
206 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...va/org/sagebionetworks/web/client/jsinterop/RejectProfileValidationRequestModalProps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package org.sagebionetworks.web.client.jsinterop; | ||
|
||
import jsinterop.annotations.JsFunction; | ||
import jsinterop.annotations.JsOverlay; | ||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
import org.sagebionetworks.repo.model.verification.VerificationStateEnum; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") | ||
public class RejectProfileValidationRequestModalProps | ||
extends ReactComponentProps { | ||
|
||
@JsFunction | ||
public interface Callback { | ||
void run(); | ||
} | ||
|
||
/* SynID of the table which contains the email responses which should populate this modal. */ | ||
public String tableId; | ||
public boolean open; | ||
public String verificationSubmissionId; | ||
public String currentState; | ||
public Callback onRejectionSubmittedSuccess; | ||
public Callback onClose; | ||
|
||
@JsOverlay | ||
public static RejectProfileValidationRequestModalProps create( | ||
String verificationSubmissionId, | ||
VerificationStateEnum currentState, | ||
String tableId, | ||
boolean open, | ||
Callback onRejectionSubmittedSuccess, | ||
Callback onClose | ||
) { | ||
RejectProfileValidationRequestModalProps props = | ||
new RejectProfileValidationRequestModalProps(); | ||
|
||
props.verificationSubmissionId = verificationSubmissionId; | ||
props.currentState = currentState.toString(); | ||
props.tableId = tableId; | ||
props.open = open; | ||
props.onRejectionSubmittedSuccess = onRejectionSubmittedSuccess; | ||
props.onClose = onClose; | ||
return props; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.