Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
2s2e committed Feb 20, 2024
2 parents 6fc45e9 + be0365a commit ee25030
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint, style, and compilation checks

on:
pull_request:
branches:
branches:
- main

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run frontend & backend unit tests
on:
pull_request:
branches:
branches:
- main
jobs:
backend:
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/app/vsr/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,3 @@
flex: 1;
height: 56px;
}

.bottom {
}
15 changes: 5 additions & 10 deletions frontend/src/app/vsr/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ const VeteranServiceRequest: React.FC = () => {
"Prefer not to say",
];

// Determine if the "Other" textbox should be shown
//const showOtherTextbox = selectedEthnicity?.length === 0 || selectedEthnicity === undefined;

const onSubmit: SubmitHandler<IFormInput> = async (data) => {
console.log(data);

Expand Down Expand Up @@ -443,14 +440,12 @@ const VeteranServiceRequest: React.FC = () => {
</div>
</div>
</div>
<div className={styles.bottom}>
<div className={styles.submitButton}>
<button className={styles.submit} type="submit">
Submit
</button>
</div>
<PageNumber pageNum={1} />
<div className={styles.submitButton}>
<button className={styles.submit} type="submit">
Submit
</button>
</div>
<PageNumber pageNum={1} />
</div>
</form>
</div>
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/util/validateResponses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ export function isnum(num: string): boolean {
return /^\d+$/.test(num);
}

export function validateDate(date: string): string {
//2 digit number / 2 digit number / 4 digit number
const dateRegex = /^\d{4}\d{2}\d{2}$/;
if (dateRegex.test(date)) {
return "Success";
} else {
return "Date is not in the correct format";
}
}

export function validateAge(age: string): string {
if (!isnum(age)) {
return "Age is not a number";
Expand Down

0 comments on commit ee25030

Please sign in to comment.