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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.2.4",
4
+ "version": "1.2.6",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -11,9 +11,9 @@ const AppHeader: React.FC<AppHeaderProps> = ({
11
11
  logoIconName = 'fireflink_icon',
12
12
  leftContent,
13
13
  rightContent,
14
- projectsList = [{ label: '', value: '', iconName: '' }],
14
+ projectsList,
15
15
  appHeaderMenuItems,
16
- appHeaderHiddenMenuItems = [{ label: '', value: '', icon: '' }],
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?:'string',
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;
@@ -68,7 +68,6 @@
68
68
  }
69
69
  td:first-child {
70
70
  div {
71
- display: flex;
72
71
  align-items: center;
73
72
  .ff-table-checkbox {
74
73
  padding-right: 8px;