l-min-components 1.7.1336 → 1.7.1337

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1336",
3
+ "version": "1.7.1337",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -209,54 +209,50 @@ const AccountDropdown = (props) => {
209
209
  })}
210
210
  </div>
211
211
  )}
212
- {(envType === "staging" || envType === "localhost") &&
213
- props?.enterpriseAccountData?.length > 0 && (
214
- <div>
215
- <h3>Enterprise account</h3>
216
- {props?.enterpriseAccountData?.map(
217
- (enterpriseItem, idx) => (
218
- <div
219
- className={`account-info ${
220
- enterpriseItem?.id === props?.selectedAccount?.id
221
- ? "activated"
222
- : ""
223
- }`}
224
- onClick={() => {
225
- deleteCookies([
226
- "defaultAccountType",
227
- "defaultAccountID",
228
- ]);
229
- props?.setSelectedAccount(enterpriseItem);
230
- setTimeout(() => {
231
- handleRedirectFunc(enterpriseItem);
232
- }, 1000);
233
- }}
234
- key={idx}
235
- >
236
- <div className="avatar-container">
237
- <img
238
- src={
239
- enterpriseItem?.profile_photo?.url ||
240
- props.avatar
241
- }
242
- alt="account photo"
243
- />
244
- </div>
245
- <div className="account-details">
246
- <h1>
247
- {" "}
248
- {findAccountNames(enterpriseItem) ||
249
- props.accountName}
250
- </h1>
251
- {enterpriseItem?.notification_count > 0 && (
252
- <span>{enterpriseItem?.notification_count} </span>
253
- )}
254
- </div>
255
- </div>
256
- )
257
- )}
258
- </div>
259
- )}
212
+ {props?.enterpriseAccountData?.length > 0 && (
213
+ <div>
214
+ <h3>Enterprise account</h3>
215
+ {props?.enterpriseAccountData?.map((enterpriseItem, idx) => (
216
+ <div
217
+ className={`account-info ${
218
+ enterpriseItem?.id === props?.selectedAccount?.id
219
+ ? "activated"
220
+ : ""
221
+ }`}
222
+ onClick={() => {
223
+ deleteCookies([
224
+ "defaultAccountType",
225
+ "defaultAccountID",
226
+ ]);
227
+ props?.setSelectedAccount(enterpriseItem);
228
+ setTimeout(() => {
229
+ handleRedirectFunc(enterpriseItem);
230
+ }, 1000);
231
+ }}
232
+ key={idx}
233
+ >
234
+ <div className="avatar-container">
235
+ <img
236
+ src={
237
+ enterpriseItem?.profile_photo?.url || props.avatar
238
+ }
239
+ alt="account photo"
240
+ />
241
+ </div>
242
+ <div className="account-details">
243
+ <h1>
244
+ {" "}
245
+ {findAccountNames(enterpriseItem) ||
246
+ props.accountName}
247
+ </h1>
248
+ {enterpriseItem?.notification_count > 0 && (
249
+ <span>{enterpriseItem?.notification_count} </span>
250
+ )}
251
+ </div>
252
+ </div>
253
+ ))}
254
+ </div>
255
+ )}
260
256
 
261
257
  {(envType === "staging" || envType === "localhost") &&
262
258
  !props?.hasDeveloperAccount && // dont show personal accounts for developer user