Skip to content

Commit

Permalink
fix: create new employee (#233)
Browse files Browse the repository at this point in the history
* fix: create new employee

* fix: create new employee
  • Loading branch information
leduyhien152 committed May 23, 2023
1 parent 7c12ec9 commit 2e70524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/components/pages/employees/EmployeeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,7 @@ export const EmployeeForm = (props: Props) => {
<Form.Item
label="Team Email"
name="teamEmail"
rules={[
{ required: true, message: 'Required' },
{ type: 'email', message: 'Wrong email format' },
]}
rules={[{ type: 'email', message: 'Wrong email format' }]}
>
<Input
className="bordered"
Expand Down
3 changes: 2 additions & 1 deletion src/types/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ export interface RequestCreateEmployeeInput {
salary: number
seniorityID: string
status: string
teamEmail: string
teamEmail?: string
joinedDate: string
}

export interface RequestCreatePositionInput {
Expand Down

0 comments on commit 2e70524

Please sign in to comment.