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

This commit is contained in:
Naomi Carrigan
2022-03-15 11:54:08 -07:00
committed by GitHub
parent a070a76694
commit 10efb79643

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;