Fix stripe. Remove fetching prices in getServerSideProps

This commit is contained in:
2023-03-05 23:04:06 +04:00
parent cdabf79e92
commit d80e20d62f
6 changed files with 66 additions and 40 deletions
+1 -3
View File
@@ -14,7 +14,6 @@ export default function StripeDialog({
setSelectedMontant,
validMontant,
setValidMontant,
prices,
paymentIntent,
setClientSecret,
setPaymentIntent,
@@ -46,7 +45,6 @@ export default function StripeDialog({
setSelectedMontant={setSelectedMontant}
validMontant={validMontant}
setValidMontant={setValidMontant}
prices={prices}
paymentIntent={paymentIntent}
setClientSecret={setClientSecret}
setPaymentIntent={setPaymentIntent}
@@ -56,6 +54,7 @@ export default function StripeDialog({
error={error}
setError={setError}
isLoading={isLoading}
handleClose={handleClose}
/>
{children}
</DialogContent>
@@ -81,7 +80,6 @@ StripeDialog.propTypes = {
setSelectedMontant: PropTypes.func.isRequired,
validMontant: PropTypes.string,
setValidMontant: PropTypes.func.isRequired,
prices: PropTypes.array.isRequired,
paymentIntent: PropTypes.string,
setClientSecret: PropTypes.func.isRequired,
setPaymentIntent: PropTypes.func.isRequired,