Skip to content

Commit f6931d9

Browse files
committed
fix web-form
Signed-off-by: Lee Calcote <[email protected]>
1 parent 2d3f59d commit f6931d9

File tree

2 files changed

+11
-7
lines changed
  • src
    • collections/events/2021/kubecon-china-2021
    • sections/Community/Web-based-from

2 files changed

+11
-7
lines changed

src/collections/events/2021/kubecon-china-2021/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import slidesTAG from "./cncf-tag-network-and-service-mesh-working-group-kubecon
1919
import slidesAdopt from "./solving-the-service-mesh-adopters-dilemma-anita-ihuman-kubecon-china-2021.pdf";
2020

2121

22-
<div style={{ backgroundColor: #E6E6E6, borderTop: "1px #D3D3D3 solid", borderBottom: "1px #D3D3D3 solid", padding: "1rem", align: "center", color: #666, marginBottom: "1rem" }}>ENGLISH</div>
22+
<div style={{ backgroundColor: "#E6E6E6", borderTop: "1px #D3D3D3 solid", borderBottom: "1px #D3D3D3 solid", padding: "1rem", align: "center", color: "#666", marginBottom: "1rem" }}>ENGLISH</div>
2323

2424
<h2>
2525
<a href="https://kccncosschn21.sched.com/event/pcbq/ji-jie-zhi-ke-zha-mu-solving-the-service-mesh-adopters-dilemma-anita-ihuman-layer5?iframe=no">

src/sections/Community/Web-based-from/index.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const validatePictureUrl = (value) => {
3232
if (!allowedImageExtensions.includes(extension)) {
3333
error = "URL must point to an image file (jpg, jpeg, png, svg, webp or gif).";
3434
}
35-
} catch (error) {
36-
console.error("Error in validatePictureUrl:", error);
35+
} catch (err) {
36+
console.error("Error in validatePictureUrl:", err);
3737
error = "Please enter a URL to an image file.";
3838
}
3939
}
@@ -205,22 +205,26 @@ const WebBasedForm = () => {
205205
<div className="center">
206206
<div className={role === "Contributor" ? "option active" : "option"} onClick={() => {
207207
setRole("Contributor");
208-
}}>
208+
}}
209+
>
209210
I'm here as a Contributor
210211
</div>
211212
<div className={role === "Developer" ? "option active" : "option"} onClick={() => {
212213
setRole("Developer");
213-
}}>
214+
}}
215+
>
214216
I'm here as a User
215217
</div>
216218
<div className={role === "User" ? "option active" : "option"} onClick={() => {
217219
setRole("User");
218-
}}>
220+
}}
221+
>
219222
I'm here as a User and Contibutor
220223
</div>
221224
<div className={role === "Bystander" ? "option active" : "option"} onClick={() => {
222225
setRole("Bystander");
223-
}}>
226+
}}
227+
>
224228
I'm here as a Bystander <br /><small>(here to learn and absorb passively)</small>
225229
</div>
226230
<br /><br />

0 commit comments

Comments
 (0)