Skip to content

Commit

Permalink
fix console warning while using inputs on login page (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoloshin0458 authored Feb 23, 2023
1 parent bbe4c9a commit d1f17b4
Show file tree
Hide file tree
Showing 22 changed files with 1,548 additions and 1,554 deletions.
4 changes: 2 additions & 2 deletions dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions dist/cjs/types/components/NumInput/NumInput.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/types/components/NumInput/index.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions dist/cjs/types/components/Table/Table.stories.d.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="react" />
import { Severities } from "../../../../consts";
import "./severityFilter.scss";
interface SeverityFilterProps {
setFilter: (value: Severities) => void;
}
declare function SeverityFilter({ setFilter }: SeverityFilterProps): JSX.Element;
export default SeverityFilter;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import React from 'react';
import SeverityFilter from './SeverityFilter';
declare const _default: React.MemoExoticComponent<typeof SeverityFilter>;
export default _default;
4 changes: 2 additions & 2 deletions dist/cjs/types/components/inputs/LoginField/LoginField.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReactElement } from 'react';
import './loginField.scss';
interface LoginFieldProps {
onChange: (newVal: any) => void;
value?: any;
onChange: (newVal: string | number) => void;
value?: string | number;
isRequired?: boolean;
wrapperClass?: string;
placeholder?: string;
Expand Down
3 changes: 2 additions & 1 deletion dist/cjs/types/hooks/useToggle.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
declare function useToggle(initialState: string | boolean, options?: string[] | undefined): [string | boolean, () => void];
declare function useToggle(initialState: boolean): [boolean, () => void];
declare function useToggle<Value1 extends string, Value2 extends string>(initialState: Value1 | Value2, options: [Value1, Value2]): [Value1 | Value2, () => void];
export default useToggle;
2 changes: 1 addition & 1 deletion dist/esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions dist/esm/types/components/NumInput/NumInput.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/types/components/NumInput/index.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions dist/esm/types/components/Table/Table.stories.d.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="react" />
import { Severities } from "../../../../consts";
import "./severityFilter.scss";
interface SeverityFilterProps {
setFilter: (value: Severities) => void;
}
declare function SeverityFilter({ setFilter }: SeverityFilterProps): JSX.Element;
export default SeverityFilter;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import React from 'react';
import SeverityFilter from './SeverityFilter';
declare const _default: React.MemoExoticComponent<typeof SeverityFilter>;
export default _default;
4 changes: 2 additions & 2 deletions dist/esm/types/components/inputs/LoginField/LoginField.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReactElement } from 'react';
import './loginField.scss';
interface LoginFieldProps {
onChange: (newVal: any) => void;
value?: any;
onChange: (newVal: string | number) => void;
value?: string | number;
isRequired?: boolean;
wrapperClass?: string;
placeholder?: string;
Expand Down
3 changes: 2 additions & 1 deletion dist/esm/types/hooks/useToggle.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
declare function useToggle(initialState: string | boolean, options?: string[] | undefined): [string | boolean, () => void];
declare function useToggle(initialState: boolean): [boolean, () => void];
declare function useToggle<Value1 extends string, Value2 extends string>(initialState: Value1 | Value2, options: [Value1, Value2]): [Value1 | Value2, () => void];
export default useToggle;
4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ interface JsonBoxProps {
declare function JsonBox(props: JsonBoxProps): JSX.Element;

interface LoginFieldProps {
onChange: (newVal: any) => void;
value?: any;
onChange: (newVal: string | number) => void;
value?: string | number;
isRequired?: boolean;
wrapperClass?: string;
placeholder?: string;
Expand Down
Loading

0 comments on commit d1f17b4

Please sign in to comment.