Skip to content

Commit

Permalink
fix(ui:form): rename form.ts to form-control.ts to fix case-sensitive…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
kagol authored and xiejay97 committed Apr 22, 2022
1 parent bd50edb commit 4af2536
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/components/form/FormGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FormGroup } from './form';
import type { FormGroup } from './form-control';

import React from 'react';

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/form/FormItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { DBreakpoints } from '../../types';
import type { AbstractControl } from './form';
import type { AbstractControl } from './form-control';

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

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

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/ui/src/components/form/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FormGroup } from './form';
import type { FormGroup } from './form-control';

import { useMemo, useState } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/form/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './form';
export * from './form-control';
export * from './Form';
export * from './FormItem';
export * from './FormGroup';
Expand Down

0 comments on commit 4af2536

Please sign in to comment.