From b2497acd904b91105f2319c5ccb1f82a02238b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Famibelle-Pronzola?= Date: Sat, 22 Jul 2023 13:25:03 +0400 Subject: [PATCH] Remove default props --- components/awtis/awtis-biyografi.js | 4 ---- components/komante/vwe-komante.js | 4 ---- components/password/reset-dialog.js | 4 ---- components/sesyon/dekoneksyon.js | 4 ---- components/soumet/chwa-teks.js | 8 -------- components/soutyen/don.js | 8 -------- components/soutyen/email.js | 6 ------ components/soutyen/montant.js | 5 ----- components/soutyen/stripe-dialog.js | 9 --------- components/soutyen/stripe-payment.js | 8 -------- components/teks/vwe-koute-achte.js | 5 ----- 11 files changed, 65 deletions(-) diff --git a/components/awtis/awtis-biyografi.js b/components/awtis/awtis-biyografi.js index 42d7017..5136c0c 100644 --- a/components/awtis/awtis-biyografi.js +++ b/components/awtis/awtis-biyografi.js @@ -77,7 +77,3 @@ AwtisBiyografi.propTypes = { esByografiOuve: PropTypes.bool.isRequired, meteEsByografiOuve: PropTypes.func.isRequired } - -AwtisBiyografi.defaultProps = { - biographie: null -} diff --git a/components/komante/vwe-komante.js b/components/komante/vwe-komante.js index c9a62f2..20cecca 100644 --- a/components/komante/vwe-komante.js +++ b/components/komante/vwe-komante.js @@ -129,10 +129,6 @@ export default function VweKomante({commentaires, parole, paroleId}) { ) } -VweKomante.defaultProps = { - commentaires: null -} - VweKomante.propTypes = { commentaires: PropTypes.array, parole: PropTypes.object.isRequired, diff --git a/components/password/reset-dialog.js b/components/password/reset-dialog.js index 227bf98..1e64005 100644 --- a/components/password/reset-dialog.js +++ b/components/password/reset-dialog.js @@ -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, diff --git a/components/sesyon/dekoneksyon.js b/components/sesyon/dekoneksyon.js index 4722d41..7d65827 100644 --- a/components/sesyon/dekoneksyon.js +++ b/components/sesyon/dekoneksyon.js @@ -54,10 +54,6 @@ function Dekoneksyon({tooltipPlacement}) { ) } -Dekoneksyon.defaultProps = { - tooltipPlacement: 'left' -} - Dekoneksyon.propTypes = { tooltipPlacement: PropTypes.string } diff --git a/components/soumet/chwa-teks.js b/components/soumet/chwa-teks.js index 4af42d0..524380e 100644 --- a/components/soumet/chwa-teks.js +++ b/components/soumet/chwa-teks.js @@ -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, diff --git a/components/soutyen/don.js b/components/soutyen/don.js index 659d1aa..d1ff499 100644 --- a/components/soutyen/don.js +++ b/components/soutyen/don.js @@ -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, diff --git a/components/soutyen/email.js b/components/soutyen/email.js index 9442bc8..5e9a778 100644 --- a/components/soutyen/email.js +++ b/components/soutyen/email.js @@ -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, diff --git a/components/soutyen/montant.js b/components/soutyen/montant.js index 4faa1fc..b1c389c 100644 --- a/components/soutyen/montant.js +++ b/components/soutyen/montant.js @@ -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, diff --git a/components/soutyen/stripe-dialog.js b/components/soutyen/stripe-dialog.js index 270e99d..9f5ba86 100644 --- a/components/soutyen/stripe-dialog.js +++ b/components/soutyen/stripe-dialog.js @@ -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, diff --git a/components/soutyen/stripe-payment.js b/components/soutyen/stripe-payment.js index 83be206..b164ee9 100644 --- a/components/soutyen/stripe-payment.js +++ b/components/soutyen/stripe-payment.js @@ -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, diff --git a/components/teks/vwe-koute-achte.js b/components/teks/vwe-koute-achte.js index b9a89b7..d9b5529 100644 --- a/components/teks/vwe-koute-achte.js +++ b/components/teks/vwe-koute-achte.js @@ -119,8 +119,3 @@ VweKouteAchte.propTypes = { niVideyo: PropTypes.bool, niOdyo: PropTypes.bool } - -VweKouteAchte.defaultProps = { - niVideyo: false, - niOdyo: false -}