Skip to content

Commit

Permalink
more api key changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbroome committed Dec 13, 2024
1 parent 6b786ca commit 628155e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 37 deletions.
2 changes: 1 addition & 1 deletion site/visitor-console/src/pages/EquipmentUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const EquipmentUsage = () => {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": import.meta.env.VITE_BACKEND_KEY,
"X-Api-Key": import.meta.env.VITE_BACKEND_KEY,
},
});

Expand Down
2 changes: 1 addition & 1 deletion site/visitor-console/src/pages/Qualifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Qualifications = () => {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": import.meta.env.VITE_BACKEND_KEY,
"X-Api-Key": import.meta.env.VITE_BACKEND_KEY,
},
}
);
Expand Down
34 changes: 0 additions & 34 deletions site/visitor-console/src/pages/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import PageCard from "../components/PageCard";

interface Schema {
username: string;
firstname: string;
lastname: string;
gender: string;
birthday: Date;
position: string;
Expand All @@ -36,8 +34,6 @@ interface Schema {
const schema: SchemaOf<Schema> = yup
.object({
username: yup.string().required(),
firstname: yup.string().required(),
lastname: yup.string().required(),
gender: yup.string().required(),
birthday: yup.date().required(),
position: yup.string().required(),
Expand Down Expand Up @@ -78,8 +74,6 @@ const Registration = () => {
const register_user = async (form_data: Schema): Promise<void> => {
const body = {
username: form_data.username,
firstName: form_data.firstname,
lastName: form_data.lastname,
Gender: form_data.gender,
DOB: format_date(form_data.birthday),
UserPosition: form_data.position,
Expand Down Expand Up @@ -135,34 +129,6 @@ const Registration = () => {
/>
</div>

{/* firstname */}
<div className="col-md-6 mb-2">
<label htmlFor="firstname" className="form-label">
Firstname
</label>
<input
className="form-control col-md-6"
type="text"
id="firstname"
placeholder="Firstname"
{...register("firstname")}
/>
</div>

{/* lastname */}
<div className="col-md-6 mb-2">
<label htmlFor="firstname" className="form-label">
Lastname
</label>
<input
className="form-control"
type="text"
id="firstname"
placeholder="Lastname"
{...register("lastname")}
/>
</div>

{/* gender */}
<div className="col-md-6">
<label htmlFor="gender" className="form-label">
Expand Down
2 changes: 1 addition & 1 deletion site/visitor-console/src/pages/Visits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Visits = () => {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": import.meta.env.VITE_BACKEND_KEY,
"X-Api-Key": import.meta.env.VITE_BACKEND_KEY,
},
});

Expand Down

0 comments on commit 628155e

Please sign in to comment.