pixel-react 1.2.5 → 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.5",
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"
@@ -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;