Skip to content

Commit

Permalink
feat: Correct the spelling of words
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbadri committed Jul 8, 2024
1 parent d20e56c commit b13c9b1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { Api } from '@mui-builder/types/api.types';
import { Script } from '@mui-builder/types/script.types';

import { Dependesies, FormId, Id, Option } from '../../../types/public.types';
import { Dependencies, FormId, Id, Option } from '../../../types/public.types';
import { Rule } from '../../../types/validation.types';

export type AutoCompleteProps<
Expand All @@ -24,7 +24,7 @@ export type AutoCompleteProps<
id: Id;
formId: FormId;
script?: Script;
dependencies?: Dependesies;
dependencies?: Dependencies;
propsController?: Record<string, any>;
api?: Api;
rule?: Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import {
import { Api } from '@mui-builder/types/api.types';
import { Script } from '@mui-builder/types/script.types';

import { Dependesies, FormId, Id } from '../../../types/public.types';
import { Dependencies, FormId, Id } from '../../../types/public.types';
import { Rule } from '../../../types/validation.types';

export type CheckboxProps = Omit<FormControlLabelProps, 'control'> & {
id: Id;
checkboxProps: MuiCheckboxProps;
formId: FormId;
script?: Script;
dependencies?: Dependesies;
dependencies?: Dependencies;
propsController?: Record<string, any>;
api?: Api;
rule?: Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TextFieldProps } from '@mui/material';
import { Api } from '@mui-builder/types/api.types';
import { Script } from '@mui-builder/types/script.types';

import { Dependesies, FormId, Id } from '../../../types/public.types';
import { Dependencies, FormId, Id } from '../../../types/public.types';
import { Rule } from '../../../types/validation.types';

export type NumberFieldProps = Omit<TextFieldProps, 'onChange'> & {
Expand All @@ -14,7 +14,7 @@ export type NumberFieldProps = Omit<TextFieldProps, 'onChange'> & {
id: Id;
formId: FormId;
script?: Script;
dependesies?: Dependesies;
dependesies?: Dependencies;
propsController?: Record<string, any>;
api?: Api;
rule?: Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const UseNumberField = (props: NumberFieldProps) => {
}

// Check if the value is a valid number before calling onChange
if (!isNaN(Number(rawValue))) {
if (!Number.isNaN(Number(rawValue))) {
formMethod.setValue(numberFieldProps.id, rawValue);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { TextFieldProps } from '@mui/material';
import { Api } from '@mui-builder/types/api.types';
import { Script } from '@mui-builder/types/script.types';

import { Dependesies, FormId, Id } from '../../../types/public.types';
import { Dependencies, FormId, Id } from '../../../types/public.types';
import { Rule } from '../../../types/validation.types';

export type PasswordProps = TextFieldProps & {
id: Id;
formId: FormId;
script?: Script;
dependesies?: Dependesies;
dependesies?: Dependencies;
propsController?: Record<string, any>;
api?: Api;
rule?: Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import { InputLabelProps } from '@mui/material/InputLabel';
import { Api } from '@mui-builder/types/api.types';
import { Script } from '@mui-builder/types/script.types';

import { Dependesies, FormId, Id, Option } from '../../../types/public.types';
import { Dependencies, FormId, Id, Option } from '../../../types/public.types';
import { Rule } from '../../../types/validation.types';

export type SelectProps = MuiSelectProps & {
id: Id;
formId: FormId;
dependencies?: Dependesies;
dependencies?: Dependencies;
api?: Api;
rule?: Rule;
show?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { TextFieldProps } from '@mui/material';
import { Api } from '@mui-builder/types/api.types';
import { Script } from '@mui-builder/types/script.types';

import { Dependesies, FormId, Id } from '../../../types/public.types';
import { Dependencies, FormId, Id } from '../../../types/public.types';
import { Rule } from '../../../types/validation.types';

export type TextProps = TextFieldProps & {
id: Id;
formId: FormId;
script?: Script;
dependencies?: Dependesies;
dependencies?: Dependencies;
propsController?: Record<string, any>;
api?: Api;
rule?: Rule;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/modules/form/src/types/public.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export type FieldProps =
| NumberFieldProps
| SelectProps;

export type Dependesies = string[];
export type Dependencies = string[];

export type LoadingProps = SkeletonOwnProps;

0 comments on commit b13c9b1

Please sign in to comment.