pixel-react 1.2.4 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/Form/Forms.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +5 -13
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -13
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AppHeader/AppHeader.tsx +4 -4
- package/src/components/Form/Forms.tsx +2 -6
- package/src/components/Table/Table.scss +0 -1
package/package.json
CHANGED
@@ -11,9 +11,9 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
11
11
|
logoIconName = 'fireflink_icon',
|
12
12
|
leftContent,
|
13
13
|
rightContent,
|
14
|
-
projectsList
|
14
|
+
projectsList,
|
15
15
|
appHeaderMenuItems,
|
16
|
-
appHeaderHiddenMenuItems
|
16
|
+
appHeaderHiddenMenuItems,
|
17
17
|
selectedMenu,
|
18
18
|
selectedSubMenu,
|
19
19
|
selectedQuickMenu,
|
@@ -36,7 +36,7 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
36
36
|
)}
|
37
37
|
</div>
|
38
38
|
<div className="ff-app-header-nav-bar">
|
39
|
-
{!checkEmpty(projectsList) && (
|
39
|
+
{projectsList && !checkEmpty(projectsList) && (
|
40
40
|
<div>
|
41
41
|
{
|
42
42
|
<AllProjectsDropdown
|
@@ -130,7 +130,7 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
130
130
|
);
|
131
131
|
})}
|
132
132
|
</div>
|
133
|
-
{!checkEmpty(appHeaderHiddenMenuItems) && (
|
133
|
+
{appHeaderHiddenMenuItems && !checkEmpty(appHeaderHiddenMenuItems) && (
|
134
134
|
<div>
|
135
135
|
<MenuOption
|
136
136
|
iconName="more"
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
2
2
|
import Form from './Form';
|
3
3
|
|
4
4
|
interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
|
5
|
-
id?:
|
5
|
+
id?: string;
|
6
6
|
onSubmit: Form.SubmitHandler<T>;
|
7
7
|
children: (methods: ReturnType<typeof Form.useForm<T>>) => React.ReactNode;
|
8
8
|
}
|
@@ -17,11 +17,7 @@ const Forms = <T extends Form.FieldValues>({
|
|
17
17
|
|
18
18
|
const { handleSubmit } = methods;
|
19
19
|
|
20
|
-
return (
|
21
|
-
<form onSubmit={handleSubmit(onSubmit)}>
|
22
|
-
{children(methods)}
|
23
|
-
</form>
|
24
|
-
);
|
20
|
+
return <form onSubmit={handleSubmit(onSubmit)}>{children(methods)}</form>;
|
25
21
|
};
|
26
22
|
|
27
23
|
export default Forms;
|