Skip to content

Commit

Permalink
major version bumps except keystone
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed May 13, 2024
1 parent 77c2acd commit 01ebcb5
Show file tree
Hide file tree
Showing 8 changed files with 2,512 additions and 1,543 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/pages/api/checkout_bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const urqlClient = createClient({
exchanges: [cacheExchange, fetchExchange],
});

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2023-10-16' });
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2024-04-10' });

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'POST') {
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/pages/api/checkout_shirt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const urqlClient = createClient({
exchanges: [cacheExchange, fetchExchange],
});

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2023-10-16' });
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2024-04-10' });

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'POST') {
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/pages/api/checkout_ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const urqlClient = createClient({
exchanges: [cacheExchange, fetchExchange],
});

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2023-10-16' });
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2024-04-10' });

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'POST') {
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/pages/api/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const urqlClient = createClient({
exchanges: [cacheExchange, fetchExchange],
});

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2023-10-16' });
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2024-04-10' });

const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET!;

Expand Down
8 changes: 4 additions & 4 deletions apps/nextjs/pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import styles from '../styles/SignIn.module.scss';
import { theme } from '../components/mui-theme';
import DiscordEmbed from '../components/DiscordEmbed';
import { LocalizationProvider, DatePicker } from '@mui/x-date-pickers';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
import sub from 'date-fns/sub';
import enLocale from 'date-fns/locale/en-AU';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
import { sub } from 'date-fns';
import { enAU } from 'date-fns/locale';

function HumanErrorMsg(error: string) {
switch (error) {
Expand Down Expand Up @@ -104,7 +104,7 @@ export default function SignUpPage() {
helperText="Letters, numbers, underscores and hyphens allowed. 3-25 Characters."
inputProps={{ maxLength: 25 }}
/>
<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={enLocale}>
<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={enAU}>
<DatePicker
value={dob}
onChange={(newValue) => {
Expand Down
8 changes: 4 additions & 4 deletions apps/nextjs/pages/user/edit-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { faChevronLeft } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Link from 'next/link';
import { DatePicker, LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
import enLocale from 'date-fns/locale/en-AU';
import sub from 'date-fns/sub';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
import { enAU } from 'date-fns/locale';
import { sub } from 'date-fns';

const DiscordRegex = /^(.{3,32}#[0-9]{4}|[a-z0-9._]{2,32})?$/;
const TwitterRegex = /^@(\w){1,15}$/;
Expand Down Expand Up @@ -229,7 +229,7 @@ export default function EditUser() {
inputProps={{ maxLength: 100 }}
/>
<div>Date of birth</div>
<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={enLocale}>
<LocalizationProvider dateAdapter={AdapterDateFns} adapterLocale={enAU}>
<DatePicker
value={new Date(dateOfBirth || Date.now())}
onChange={(newValue) => {
Expand Down
Loading

0 comments on commit 01ebcb5

Please sign in to comment.