chore: add formListId to EventCTASection

This commit is contained in:
jinhojang6
2024-02-05 22:25:05 +09:00
committed by Jinho Jang
parent 308a4a6037
commit 2e662f085c
4 changed files with 10 additions and 2 deletions
@@ -118,6 +118,7 @@ List of all Waku events
required: true,
},
]}
formListId={5}
/>
</Grid.Item>
</Grid>
@@ -33,7 +33,7 @@ import {
<Grid.Item xs={1}>
<EventInfo
label="Date"
content="Monday 15-19 January 2024 / 6 PM PST"
content={"Monday 15-19\nJanuary 2024 / 6 PM PST"}
/>
</Grid.Item>
<Grid.Item xs={1}>
@@ -146,6 +146,7 @@ Yet, it doesn't have to be this way. Advances in cryptography, peer-to-peer netw
required: true,
},
]}
formListId={5}
/>
</Grid.Item>
</Grid>
@@ -10,6 +10,7 @@ export type EventCTASectionProps = {
link?: string
linkProps: Props
formInput?: any[]
formListId?: number
}
export const EventCTASection: React.FC<EventCTASectionProps & Props> = ({
@@ -19,6 +20,7 @@ export const EventCTASection: React.FC<EventCTASectionProps & Props> = ({
link,
linkProps,
formInput,
formListId,
}) => {
const [formState, setFormState] = React.useState({ email: '', name: '' })
const [message, setMessage] = React.useState('')
@@ -43,7 +45,7 @@ export const EventCTASection: React.FC<EventCTASectionProps & Props> = ({
params: {
value: formState?.email,
name: formState?.name || '',
list_id: 2,
list_id: formListId,
subscription_type: 'email',
},
}),
@@ -18,3 +18,7 @@
.mdx-event-info__label {
opacity: 0.6;
}
.mdx-event-info__content {
white-space: pre-wrap;
}