Skip to content

Commit 70ce8e0

Browse files
committed
Changes
1 parent 5271c6b commit 70ce8e0

File tree

10 files changed

+14
-39
lines changed

10 files changed

+14
-39
lines changed

Dockerfile.node.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.17.1
1+
FROM node:23
22

33
WORKDIR /home/node/app
44

frontend/next.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = withSentryConfig({
2727
? undefined
2828
: require.resolve("./cache-handler.mjs"),
2929
generateBuildId:
30-
process.env.VERCEL_ENV === "preview"
30+
process.env.VERCEL_ENV === "preview" || !process.env.GIT_HASH
3131
? undefined
3232
: async () => {
3333
return process.env.GIT_HASH;
@@ -138,7 +138,4 @@ module.exports = withSentryConfig({
138138

139139
return config;
140140
},
141-
experimental: {
142-
instrumentationHook: true,
143-
},
144141
});

frontend/src/components/badge/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { SnakeLongNeck } from "@python-italia/pycon-styleguide/illustrations";
2-
import clsx from "clsx";
31
import QRCode from "react-qr-code";
42
import Balancer from "react-wrap-balancer";
53

frontend/src/components/brochure/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CoverPage } from "./cover-page";
44
import { LocationPage } from "./location-page";
55
import { OptionsPage } from "./options-page";
66
import { OverviewPage } from "./overview-page";
7-
import { Benefit, Package, PricingPage } from "./pricing-page";
7+
import { PricingPage } from "./pricing-page";
88
import { TestimonialsPage } from "./testimonial-page";
99
import { WhySponsorPage } from "./why-sponsor-page";
1010

frontend/src/components/cfp-form/index.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
import type { ApolloError } from "@apollo/client";
22
import {
33
Button,
4-
CardPart,
54
Checkbox,
65
Grid,
7-
Heading,
86
HorizontalStack,
9-
Input,
10-
InputWrapper,
117
Link,
12-
MultiplePartsCard,
13-
Select,
148
Spacer,
159
Text,
16-
Textarea,
17-
VerticalStack,
1810
} from "@python-italia/pycon-styleguide";
1911
import type React from "react";
20-
import { Fragment, useEffect } from "react";
12+
import { useEffect } from "react";
2113
import { FormattedMessage } from "react-intl";
2214
import { useFormState } from "react-use-form-state";
2315

@@ -30,14 +22,11 @@ import {
3022
useParticipantDataQuery,
3123
} from "~/types";
3224

33-
import { useTranslatedMessage } from "~/helpers/use-translated-message";
3425
import { createHref } from "../link";
35-
import { MultiLingualInput } from "../multilingual-input";
3626
import {
3727
type ParticipantFormFields,
3828
PublicProfileCard,
3929
} from "../public-profile-card";
40-
import { TagsSelect } from "../tags-select";
4130
import { AboutYouSection } from "./about-you-section";
4231
import { AvailabilitySection } from "./availability-section";
4332
import { ProposalSection } from "./proposal-section";

frontend/src/components/newsletter-modal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Text,
1111
} from "@python-italia/pycon-styleguide";
1212
import type React from "react";
13-
import { useCallback, useRef, useState } from "react";
13+
import { useCallback, useRef } from "react";
1414
import { FormattedMessage } from "react-intl";
1515

1616
import { useTranslatedMessage } from "~/helpers/use-translated-message";

frontend/src/components/tags-select/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import React, { type ComponentType } from "react";
22
import {
33
type DropdownIndicatorProps,
44
type MultiValue,
@@ -15,11 +15,16 @@ type TagsSelectProps = {
1515
onChange?: (tags: MultiValue<{ value: string }>) => void;
1616
};
1717

18+
// const BaseDropdownIndicator = components.DropdownIndicator as unknown as ReactNode
19+
const BaseDropdownIndicator = components.DropdownIndicator as ComponentType<
20+
DropdownIndicatorProps<any, true>
21+
>;
22+
1823
const DropdownIndicator = (props: DropdownIndicatorProps<any, true>) => {
1924
return (
20-
<components.DropdownIndicator {...props}>
25+
<BaseDropdownIndicator {...props}>
2126
<ArrowDownIcon />
22-
</components.DropdownIndicator>
27+
</BaseDropdownIndicator>
2328
);
2429
};
2530

frontend/src/components/tickets-page/tickets.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import type {
99
TicketsQueryResult,
1010
} from "~/types";
1111

12-
import { Text } from "@python-italia/pycon-styleguide";
13-
import { FormattedMessage } from "react-intl";
1412
import { ProductsList } from "../products-list";
1513
import { useLoginState } from "../profile/hooks";
1614
import { CheckoutBar } from "./checkout-bar";

frontend/src/pages/api/badge.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

frontend/src/pages/cfp/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import {
88
} from "@python-italia/pycon-styleguide";
99
import { FormattedMessage } from "react-intl";
1010

11-
import type { GetServerSideProps, GetStaticProps } from "next";
11+
import type { GetServerSideProps } from "next";
1212

1313
import { useRouter } from "next/router";
14-
import { useEffect } from "react";
1514
import { addApolloState, getApolloClient } from "~/apollo/client";
1615
import { Introduction } from "~/components/cfp-introduction";
1716
import { CfpSendSubmission } from "~/components/cfp-send-submission";

0 commit comments

Comments
 (0)