fix: resolve lint error in paypal-button (#45440)

pull/45441/head^2
Naomi Carrigan 2022-03-15 11:54:08 -07:00 committed by GitHub
parent a070a76694
commit 10efb79643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ export class PaypalButton extends Component<
this.handleApproval = this.handleApproval.bind(this);
}
static getDerivedStateFromProps(props: PaypalButtonProps): PaypalButtonState {
static getDerivedStateFromProps(
props: Readonly<PaypalButtonProps>
): PaypalButtonState {
const { donationAmount, donationDuration } = props;
const configurationObj: {
amount: number;