Compare commits
2
Commits
dev
...
b00b857f29
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b00b857f29 | ||
|
|
cf7bdeb481 |
@@ -163,6 +163,7 @@ export const apply: FormData = {
|
||||
|
||||
age: Yup.number()
|
||||
.typeError('Input must be a number')
|
||||
.integer('Please enter a whole number')
|
||||
.min(0, 'Please enter a valid age')
|
||||
.max(999, 'We do not accept players older than 999 years old sorry!')
|
||||
.required('You are required to fill out your age'),
|
||||
@@ -175,6 +176,7 @@ export const apply: FormData = {
|
||||
|
||||
avg_time: Yup.number()
|
||||
.typeError('Please enter a number')
|
||||
.integer('Please enter a whole number')
|
||||
.min(0, 'Please enter a positive number')
|
||||
.max(168, 'There are only 168 hours in a week')
|
||||
.required('Please enter the average time you will be available each week'),
|
||||
|
||||
@@ -11,6 +11,7 @@ const Home: FunctionComponent = () => {
|
||||
<header className="App-header">
|
||||
<h1>Welcome to the Altitude forms page</h1>
|
||||
<h2><a href="/contact">Contact us.</a></h2>
|
||||
<h2><a href="/apply">Apply for staff.</a></h2>
|
||||
</header>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user