forked from lfglabs-dev/starknet.quest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbannerStep.tsx
67 lines (64 loc) · 1.7 KB
/
bannerStep.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import React, { FunctionComponent } from "react";
import TextInput from "../textInput";
type BannerStepProps = {
handleTasksInputChange: (
e: React.ChangeEvent<HTMLInputElement>,
index: number
) => void;
step: StepMap;
index: number;
};
const BannerStep: FunctionComponent<BannerStepProps> = ({
handleTasksInputChange,
step,
index,
}) => {
return (
<div className="flex flex-col gap-4 pt-2">
<TextInput
onChange={(e) => handleTasksInputChange(e, index)}
value={step.data.banner.tag}
name="tag"
label="Tag"
placeholder="Optional"
/>
<TextInput
onChange={(e) => handleTasksInputChange(e, index)}
value={step.data.banner.title}
name="title"
label="Title"
placeholder="Title"
/>
<TextInput
onChange={(e) => handleTasksInputChange(e, index)}
value={step.data.banner.description}
name="description"
label="Description"
placeholder="Description"
multiline={4}
/>
<TextInput
onChange={(e) => handleTasksInputChange(e, index)}
value={step.data.banner.cta}
name="cta"
label="CTA (Call to Action)"
placeholder="Call to Action"
/>
<TextInput
onChange={(e) => handleTasksInputChange(e, index)}
value={step.data.banner.href}
name="href"
label="CTA Link"
placeholder="https://example.com"
/>
<TextInput
onChange={(e) => handleTasksInputChange(e, index)}
value={step.data.banner.image}
name="image"
label="Image URL"
placeholder="/karnot/endurBanner.webp"
/>
</div>
);
};
export default BannerStep;