8000 Disable holiday sale by davisengeler · Pull Request #397 · Vibe-House-LLC/memeSRC · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Disable holiday sale #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions amplify/backend/function/memesrcUserFunction/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,9 +1430,9 @@ export const handler = async (event) => {
{ price: priceMap[priceKey], quantity: 1 },
],
mode: 'subscription',
discounts: [{
coupon: `${process.env.ENV === 'beta' ? '9rKTV0QH' : '1UE38YJK'}`
}],
// discounts: [{
// coupon: `${process.env.ENV === 'beta' ? '9rKTV0QH' : '1UE38YJK'}`
// }],
metadata: {
callbackUrl: body.currentUrl
}
Expand Down
2 changes: 1 addition & 1 deletion amplify/team-provider-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"memesrcUserFunction": {
"deploymentBucketName": "amplify-memesrc-dev-191629-deployment",
"s3Key": "amplify-builds/memesrcUserFunction-5432396d706438516f55-build.zip",
"s3Key": "amplify-builds/memesrcUserFunction-636f32517a6655767430-build.zip",
"secretsPathAmplifyAppId": "d32pnvtwxwtte5"
},
"memesrcVote": {
Expand Down
2 changes: 1 addition & 1 deletion src/constants/sales.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const SALE_END_DATE = new Date('2025-01-01T00:00:00').getTime();

// Current sale configuration
export const CURRENT_SALE = {
isActive: true,
isActive: false,
discountPercent: 40,
monthsDuration: 3,
get discountMultiplier() {
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/SubscribeDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export const DialogProvider = ({ children }) => {
<DialogContent sx={{ py: isCompact ? 2 : 4, pb: isCompact ? 3 : 6 }}>
{CURRENT_SALE.isActive && (isXs || isCompact) && <CountdownTimer />}
<Grid container spacing={2}>
<Grid item xs={12} sm={isCompact ? 12 : 6}>
<Grid item xs={12} sm={CURRENT_SALE.isActive ? (isCompact ? 12 : 6) : 12}>
<Box
p={isCompact ? 2 : 2.5}
sx={{
Expand Down
0