|
|
@@ -60,10 +60,6 @@ const CreateStaff: React.FC<formProps> = ({ combos }) => { |
|
|
|
|
|
|
|
const errors = formProps.formState.errors; |
|
|
|
|
|
|
|
const checkDuplicates = (str1: string, str2: string, str3: string) => { |
|
|
|
return str1 === str2 || str1 === str3 || str2 === str3; |
|
|
|
} |
|
|
|
|
|
|
|
const onSubmit = useCallback<SubmitHandler<CreateStaffInputs>>( |
|
|
|
async (data) => { |
|
|
|
try { |
|
|
|