l-min-components 1.6.1255 → 1.6.1258
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
|
@@ -203,71 +203,22 @@ const AccountDropdown = (props) => {
|
|
|
203
203
|
})}
|
|
204
204
|
</div>
|
|
205
205
|
)}
|
|
206
|
-
{envType === "staging" ||
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
(enterpriseItem, idx) => (
|
|
213
|
-
<div
|
|
214
|
-
className={`account-info ${
|
|
215
|
-
enterpriseItem?.id === props?.selectedAccount?.id
|
|
216
|
-
? "activated"
|
|
217
|
-
: ""
|
|
218
|
-
}`}
|
|
219
|
-
onClick={() => {
|
|
220
|
-
props?.setSelectedAccount(enterpriseItem);
|
|
221
|
-
setTimeout(() => {
|
|
222
|
-
handleRedirectFunc(enterpriseItem);
|
|
223
|
-
}, 1000);
|
|
224
|
-
}}
|
|
225
|
-
key={idx}
|
|
226
|
-
>
|
|
227
|
-
<div className="avatar-container">
|
|
228
|
-
<img
|
|
229
|
-
src={
|
|
230
|
-
enterpriseItem?.profile_photo?.url ||
|
|
231
|
-
props.avatar
|
|
232
|
-
}
|
|
233
|
-
alt="account photo"
|
|
234
|
-
/>
|
|
235
|
-
</div>
|
|
236
|
-
<div className="account-details">
|
|
237
|
-
<h1>
|
|
238
|
-
{" "}
|
|
239
|
-
{enterpriseItem?.display_name ||
|
|
240
|
-
props.accountName}
|
|
241
|
-
</h1>
|
|
242
|
-
{enterpriseItem?.notification_count > 0 && (
|
|
243
|
-
<span>
|
|
244
|
-
{enterpriseItem?.notification_count}{" "}
|
|
245
|
-
</span>
|
|
246
|
-
)}
|
|
247
|
-
</div>
|
|
248
|
-
</div>
|
|
249
|
-
)
|
|
250
|
-
)}
|
|
251
|
-
</div>
|
|
252
|
-
))}
|
|
253
|
-
|
|
254
|
-
{envType === "staging" ||
|
|
255
|
-
(envType === "localhost" &&
|
|
256
|
-
!props?.hasDeveloperAccount && // dont show personal accounts for developer user
|
|
257
|
-
props?.personalAccountData?.length > 0 && (
|
|
258
|
-
<div>
|
|
259
|
-
<h3>Personal account</h3>
|
|
260
|
-
{props?.personalAccountData?.map((personalItem, idx) => (
|
|
206
|
+
{(envType === "staging" || envType === "localhost") &&
|
|
207
|
+
props?.enterpriseAccountData?.length > 0 && (
|
|
208
|
+
<div>
|
|
209
|
+
<h3>Enterprise account</h3>
|
|
210
|
+
{props?.enterpriseAccountData?.map(
|
|
211
|
+
(enterpriseItem, idx) => (
|
|
261
212
|
<div
|
|
262
213
|
className={`account-info ${
|
|
263
|
-
|
|
214
|
+
enterpriseItem?.id === props?.selectedAccount?.id
|
|
264
215
|
? "activated"
|
|
265
216
|
: ""
|
|
266
217
|
}`}
|
|
267
218
|
onClick={() => {
|
|
268
|
-
props?.setSelectedAccount(
|
|
219
|
+
props?.setSelectedAccount(enterpriseItem);
|
|
269
220
|
setTimeout(() => {
|
|
270
|
-
handleRedirectFunc(
|
|
221
|
+
handleRedirectFunc(enterpriseItem);
|
|
271
222
|
}, 1000);
|
|
272
223
|
}}
|
|
273
224
|
key={idx}
|
|
@@ -275,7 +226,8 @@ const AccountDropdown = (props) => {
|
|
|
275
226
|
<div className="avatar-container">
|
|
276
227
|
<img
|
|
277
228
|
src={
|
|
278
|
-
|
|
229
|
+
enterpriseItem?.profile_photo?.url ||
|
|
230
|
+
props.avatar
|
|
279
231
|
}
|
|
280
232
|
alt="account photo"
|
|
281
233
|
/>
|
|
@@ -283,16 +235,60 @@ const AccountDropdown = (props) => {
|
|
|
283
235
|
<div className="account-details">
|
|
284
236
|
<h1>
|
|
285
237
|
{" "}
|
|
286
|
-
{
|
|
238
|
+
{enterpriseItem?.display_name ||
|
|
239
|
+
props.accountName}
|
|
287
240
|
</h1>
|
|
288
|
-
{
|
|
289
|
-
<span>{
|
|
241
|
+
{enterpriseItem?.notification_count > 0 && (
|
|
242
|
+
<span>{enterpriseItem?.notification_count} </span>
|
|
290
243
|
)}
|
|
291
244
|
</div>
|
|
292
245
|
</div>
|
|
293
|
-
)
|
|
294
|
-
|
|
295
|
-
|
|
246
|
+
)
|
|
247
|
+
)}
|
|
248
|
+
</div>
|
|
249
|
+
)}
|
|
250
|
+
|
|
251
|
+
{(envType === "staging" || envType === "localhost") &&
|
|
252
|
+
!props?.hasDeveloperAccount && // dont show personal accounts for developer user
|
|
253
|
+
props?.personalAccountData?.length > 0 && (
|
|
254
|
+
<div>
|
|
255
|
+
<h3>Personal account</h3>
|
|
256
|
+
{props?.personalAccountData?.map((personalItem, idx) => (
|
|
257
|
+
<div
|
|
258
|
+
className={`account-info ${
|
|
259
|
+
personalItem?.id === props?.selectedAccount?.id
|
|
260
|
+
? "activated"
|
|
261
|
+
: ""
|
|
262
|
+
}`}
|
|
263
|
+
onClick={() => {
|
|
264
|
+
props?.setSelectedAccount(personalItem);
|
|
265
|
+
setTimeout(() => {
|
|
266
|
+
handleRedirectFunc(personalItem);
|
|
267
|
+
}, 1000);
|
|
268
|
+
}}
|
|
269
|
+
key={idx}
|
|
270
|
+
>
|
|
271
|
+
<div className="avatar-container">
|
|
272
|
+
<img
|
|
273
|
+
src={
|
|
274
|
+
personalItem?.profile_photo?.url || props.avatar
|
|
275
|
+
}
|
|
276
|
+
alt="account photo"
|
|
277
|
+
/>
|
|
278
|
+
</div>
|
|
279
|
+
<div className="account-details">
|
|
280
|
+
<h1>
|
|
281
|
+
{" "}
|
|
282
|
+
{personalItem?.display_name || props.accountName}
|
|
283
|
+
</h1>
|
|
284
|
+
{personalItem?.notification_count > 0 && (
|
|
285
|
+
<span>{personalItem?.notification_count} </span>
|
|
286
|
+
)}
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
))}
|
|
290
|
+
</div>
|
|
291
|
+
)}
|
|
296
292
|
</>
|
|
297
293
|
) : (
|
|
298
294
|
<></>
|
|
@@ -143,7 +143,8 @@ const VideoPlayer = ({
|
|
|
143
143
|
});
|
|
144
144
|
|
|
145
145
|
hls.on(Hls.Events.ERROR, (event, data) => {
|
|
146
|
-
|
|
146
|
+
console.log(data, "errorr....", event);
|
|
147
|
+
// setError(true);
|
|
147
148
|
});
|
|
148
149
|
} else if (
|
|
149
150
|
videoRef.current.canPlayType("application/vnd.apple.mpegurl") &&
|