Skip to content

Commit 4af2536

Browse files
kagolxiejay97
authored andcommitted
fix(ui:form): rename form.ts to form-control.ts to fix case-sensitive errors
1 parent bd50edb commit 4af2536

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/ui/src/components/form/FormGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FormGroup } from './form';
1+
import type { FormGroup } from './form-control';
22

33
import React from 'react';
44

packages/ui/src/components/form/FormItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { DBreakpoints } from '../../types';
2-
import type { AbstractControl } from './form';
2+
import type { AbstractControl } from './form-control';
33

44
import { isBoolean, isFunction, isNull, isNumber, isString, isUndefined } from 'lodash';
55
import React, { useContext, useEffect, useId, useRef } from 'react';
@@ -11,7 +11,7 @@ import { DTooltip } from '../tooltip';
1111
import { DError } from './Error';
1212
import { DFormContext } from './Form';
1313
import { DFormGroupContext } from './FormGroup';
14-
import { Validators } from './form';
14+
import { Validators } from './form-control';
1515

1616
type DErrors = { key: string; formControlName: string; message: string; status: 'warning' | 'error'; hidden?: true }[];
1717

File renamed without changes.

packages/ui/src/components/form/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FormGroup } from './form';
1+
import type { FormGroup } from './form-control';
22

33
import { useMemo, useState } from 'react';
44

packages/ui/src/components/form/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './form';
1+
export * from './form-control';
22
export * from './Form';
33
export * from './FormItem';
44
export * from './FormGroup';

0 commit comments

Comments
 (0)