Remove default props
This commit is contained in:
@@ -77,7 +77,3 @@ AwtisBiyografi.propTypes = {
|
||||
esByografiOuve: PropTypes.bool.isRequired,
|
||||
meteEsByografiOuve: PropTypes.func.isRequired
|
||||
}
|
||||
|
||||
AwtisBiyografi.defaultProps = {
|
||||
biographie: null
|
||||
}
|
||||
|
||||
@@ -129,10 +129,6 @@ export default function VweKomante({commentaires, parole, paroleId}) {
|
||||
)
|
||||
}
|
||||
|
||||
VweKomante.defaultProps = {
|
||||
commentaires: null
|
||||
}
|
||||
|
||||
VweKomante.propTypes = {
|
||||
commentaires: PropTypes.array,
|
||||
parole: PropTypes.object.isRequired,
|
||||
|
||||
@@ -75,10 +75,6 @@ export default function ResetDialog({lyen, title, activation, content, open, set
|
||||
)
|
||||
}
|
||||
|
||||
ResetDialog.defaultProps = {
|
||||
activation: false
|
||||
}
|
||||
|
||||
ResetDialog.propTypes = {
|
||||
lyen: PropTypes.string.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
|
||||
@@ -54,10 +54,6 @@ function Dekoneksyon({tooltipPlacement}) {
|
||||
)
|
||||
}
|
||||
|
||||
Dekoneksyon.defaultProps = {
|
||||
tooltipPlacement: 'left'
|
||||
}
|
||||
|
||||
Dekoneksyon.propTypes = {
|
||||
tooltipPlacement: PropTypes.string
|
||||
}
|
||||
|
||||
@@ -55,10 +55,6 @@ function Chwa(props) {
|
||||
)
|
||||
}
|
||||
|
||||
Chwa.defaultProps = {
|
||||
selectedTeks: null
|
||||
}
|
||||
|
||||
Chwa.propTypes = {
|
||||
onClose: PropTypes.func.isRequired,
|
||||
teksLis: PropTypes.array.isRequired,
|
||||
@@ -107,10 +103,6 @@ export default function ChwaTeks({selectedTeks, setSelectedTeks}) {
|
||||
)
|
||||
}
|
||||
|
||||
ChwaTeks.defaultProps = {
|
||||
selectedTeks: null
|
||||
}
|
||||
|
||||
ChwaTeks.propTypes = {
|
||||
selectedTeks: PropTypes.object,
|
||||
setSelectedTeks: PropTypes.func.isRequired,
|
||||
|
||||
@@ -90,14 +90,6 @@ export default function Don({isPaypal, selectedMontant, setSelectedMontant, vali
|
||||
)
|
||||
}
|
||||
|
||||
Don.defaultProps = {
|
||||
selectedMontant: null,
|
||||
validMontant: null,
|
||||
paymentIntent: null,
|
||||
clientEmail: null,
|
||||
error: null
|
||||
}
|
||||
|
||||
Don.propTypes = {
|
||||
isPaypal: PropTypes.bool.isRequired,
|
||||
selectedMontant: PropTypes.string,
|
||||
|
||||
@@ -26,12 +26,6 @@ export default function Email({validMontant, error, clientEmail, setClientEmail}
|
||||
)
|
||||
}
|
||||
|
||||
Email.defaultProps = {
|
||||
validMontant: null,
|
||||
error: null,
|
||||
clientEmail: null
|
||||
}
|
||||
|
||||
Email.propTypes = {
|
||||
validMontant: PropTypes.string,
|
||||
error: PropTypes.string,
|
||||
|
||||
@@ -54,11 +54,6 @@ export default function Montant({selectedMontant, setSelectedMontant, validMonta
|
||||
)
|
||||
}
|
||||
|
||||
Montant.defaultProps = {
|
||||
selectedMontant: null,
|
||||
validMontant: null
|
||||
}
|
||||
|
||||
Montant.propTypes = {
|
||||
selectedMontant: PropTypes.string,
|
||||
setSelectedMontant: PropTypes.func.isRequired,
|
||||
|
||||
@@ -63,15 +63,6 @@ export default function StripeDialog({
|
||||
)
|
||||
}
|
||||
|
||||
StripeDialog.defaultProps = {
|
||||
selectedMontant: null,
|
||||
validMontant: null,
|
||||
paymentIntent: null,
|
||||
clientEmail: null,
|
||||
error: null,
|
||||
children: null
|
||||
}
|
||||
|
||||
StripeDialog.propTypes = {
|
||||
open: PropTypes.bool.isRequired,
|
||||
handleClose: PropTypes.func.isRequired,
|
||||
|
||||
@@ -91,14 +91,6 @@ export default function StripePayment({isLoading, selectedMontant, setSelectedMo
|
||||
)
|
||||
}
|
||||
|
||||
StripePayment.defaultProps = {
|
||||
selectedMontant: null,
|
||||
validMontant: null,
|
||||
paymentIntent: null,
|
||||
clientEmail: null,
|
||||
error: null
|
||||
}
|
||||
|
||||
StripePayment.propTypes = {
|
||||
isLoading: PropTypes.bool.isRequired,
|
||||
selectedMontant: PropTypes.string,
|
||||
|
||||
@@ -119,8 +119,3 @@ VweKouteAchte.propTypes = {
|
||||
niVideyo: PropTypes.bool,
|
||||
niOdyo: PropTypes.bool
|
||||
}
|
||||
|
||||
VweKouteAchte.defaultProps = {
|
||||
niVideyo: false,
|
||||
niOdyo: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user