Skip to content

Commit

Permalink
feat/auth-form little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serikovlearning committed May 9, 2024
1 parent 83c8535 commit 75edf29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend-admin/src/lib/components/auth-form/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const handleInputChange = (
// mutateField: (value: boolean) => void,
changeState: (value: string) => void
) => {
return (value: string | number | null) => {
Expand Down
6 changes: 4 additions & 2 deletions frontend-admin/src/lib/composable/form-composable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type { TFormComposableParams } from './types';
export const formComposable = <
TResponseParams = unknown,
TFields extends object = Record<string, unknown>
// TRequestParams extends object = Record<string, any>,
>({
initialValues,
request,
Expand All @@ -35,9 +34,12 @@ export const formComposable = <
};

const handleSubmit = async () => {
/**
* TODO: вынести получение параметров запроса в отдельную функцию
*/
const requestParams: TFields = {} as TFields;

const fields = get(formState).fields;

(
Object.entries(fields) as [
[keyof typeof fields, (typeof extendedValues)['fields'][keyof typeof fields]]
Expand Down

0 comments on commit 75edf29

Please sign in to comment.