Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into develop
  • Loading branch information
yoosion030 committed Oct 13, 2022
2 parents 8a869c9 + 4d2eba3 commit 9eec355
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
15 changes: 15 additions & 0 deletions packages/hello-gsm/src/PageContainer/CalculatorPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@ const CalculatorPage: NextPage<UserIdxType> = ({
{...register(`absentValue.${i}`, {
required: true,
valueAsNumber: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
placeholder="입력"
Expand All @@ -613,6 +616,9 @@ const CalculatorPage: NextPage<UserIdxType> = ({
{...register(`attendanceValue.${i}`, {
required: true,
valueAsNumber: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
placeholder="입력"
Expand All @@ -627,6 +633,9 @@ const CalculatorPage: NextPage<UserIdxType> = ({
{...register(`attendanceValue.${3 + i}`, {
required: true,
valueAsNumber: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
placeholder="입력"
Expand All @@ -641,6 +650,9 @@ const CalculatorPage: NextPage<UserIdxType> = ({
{...register(`attendanceValue.${6 + i}`, {
required: true,
valueAsNumber: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
placeholder="입력"
Expand All @@ -654,6 +666,9 @@ const CalculatorPage: NextPage<UserIdxType> = ({
{...register(`volunteerValue.${i}`, {
required: true,
valueAsNumber: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
placeholder="입력"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,19 @@ const GEDCalculatorPage: NextPage<UserIdxType> = ({
{...register('curriculumScoreSubtotal', {
valueAsNumber: true,
required: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
/>
<S.ScoreInput
{...register('nonCurriculumScoreSubtotal', {
valueAsNumber: true,
required: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ const TestGEDCalculatorPage: NextPage = () => {
{...register('curriculumScoreSubtotal', {
valueAsNumber: true,
required: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
/>
<S.ScoreInput
{...register('nonCurriculumScoreSubtotal', {
valueAsNumber: true,
required: true,
validate: {
nagativeNumber: value => !(value < 0),
},
})}
type="number"
/>
Expand Down
6 changes: 3 additions & 3 deletions packages/hello-gsm/src/shared/acceptable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 10월 17일 9시부터 10월 20일 17시 까지
const acceptable = true;
// new Date() >= new Date('2022-10-17 9:00') &&
// new Date() <= new Date('2022-10-20 17:00');
const acceptable =
new Date() >= new Date('2022-10-17 9:00') &&
new Date() <= new Date('2022-10-20 17:00');

export default acceptable;

0 comments on commit 9eec355

Please sign in to comment.