5
5
FOLDER_URL_PREFIX ,
6
6
FOLDERS_URL ,
7
7
MARKETPLACE_URL ,
8
- MARKETPLACE_URL_BY_TYPE ,
9
8
MODULE_APPLICATIONS_URL ,
10
9
QUERY_LIBRARY_URL ,
11
10
SETTING ,
@@ -17,25 +16,17 @@ import {
17
16
EditPopover ,
18
17
EllipsisTextCss ,
19
18
FolderIcon ,
20
- HomeActiveIcon ,
21
- HomeDataSourceActiveIcon ,
22
19
HomeDataSourceIcon ,
23
20
HomeIcon ,
24
- HomeModuleActiveIcon ,
25
21
HomeModuleIcon ,
26
- HomeQueryLibraryActiveIcon ,
27
22
HomeQueryLibraryIcon ,
28
- HomeSettingsActiveIcon ,
29
- HomeSettingsIcon ,
23
+ HomeSettingIcon ,
30
24
InviteUserIcon ,
31
25
PlusIcon ,
32
26
PointIcon ,
33
- RecyclerActiveIcon ,
34
27
RecyclerIcon ,
35
28
MarketplaceIcon ,
36
- MarketplaceActiveIcon ,
37
- LowcoderMarketplaceActiveIcon ,
38
- LowcoderMarketplaceIcon ,
29
+ AppsIcon
39
30
} from "lowcoder-design" ;
40
31
import React , { useEffect , useState } from "react" ;
41
32
import { fetchAllApplications , fetchHomeData } from "redux/reduxActions/applicationActions" ;
@@ -345,48 +336,28 @@ export default function ApplicationHome() {
345
336
text : < TabLabel > { trans ( "home.allApplications" ) } </ TabLabel > ,
346
337
routePath : ALL_APPLICATIONS_URL ,
347
338
routeComp : HomeView ,
348
- icon : ( { selected, ...otherProps } ) =>
349
- selected ? < HomeActiveIcon { ...otherProps } /> : < HomeIcon { ...otherProps } /> ,
339
+ icon : ( { selected, ...otherProps } ) => selected ? < AppsIcon { ...otherProps } width = { "24px" } /> : < AppsIcon { ...otherProps } width = { "24px" } /> ,
350
340
} ,
351
341
{
352
342
text : < TabLabel > { trans ( "home.allModules" ) } </ TabLabel > ,
353
343
routePath : MODULE_APPLICATIONS_URL ,
354
344
routeComp : ModuleView ,
355
- icon : ( { selected, ...otherProps } ) =>
356
- selected ? (
357
- < HomeModuleActiveIcon { ...otherProps } />
358
- ) : (
359
- < HomeModuleIcon { ...otherProps } />
360
- ) ,
345
+ icon : ( { selected, ...otherProps } ) => selected ? < HomeModuleIcon { ...otherProps } width = { "24px" } /> : < HomeModuleIcon { ...otherProps } width = { "24px" } /> ,
361
346
visible : ( { user } ) => user . orgDev ,
362
347
} ,
363
348
{
364
- text : (
365
- < TabLabel >
366
- { trans ( "home.marketplace" ) }
367
- </ TabLabel >
368
- ) ,
349
+ text : < TabLabel > { trans ( "home.marketplace" ) } </ TabLabel > ,
369
350
routePath : MARKETPLACE_URL ,
370
351
routePathExact : false ,
371
352
routeComp : MarketplaceView ,
372
- icon : ( { selected, ...otherProps } ) =>
373
- selected ? (
374
- < MarketplaceActiveIcon { ...otherProps } />
375
- ) : (
376
- < MarketplaceIcon { ...otherProps } />
377
- ) ,
353
+ icon : ( { selected, ...otherProps } ) => selected ? < MarketplaceIcon { ...otherProps } width = { "24px" } /> : < MarketplaceIcon { ...otherProps } width = { "24px" } /> ,
378
354
visible : ( { user } ) => user . orgDev ,
379
355
} ,
380
356
{
381
357
text : < TabLabel > { trans ( "home.trash" ) } </ TabLabel > ,
382
358
routePath : TRASH_URL ,
383
359
routeComp : TrashView ,
384
- icon : ( { selected, ...otherProps } ) =>
385
- selected ? (
386
- < RecyclerActiveIcon { ...otherProps } />
387
- ) : (
388
- < RecyclerIcon { ...otherProps } />
389
- ) ,
360
+ icon : ( { selected, ...otherProps } ) => selected ? < RecyclerIcon { ...otherProps } width = { "24px" } /> : < RecyclerIcon { ...otherProps } width = { "24px" } /> ,
390
361
visible : ( { user } ) => user . orgDev ,
391
362
} ,
392
363
] ,
@@ -414,25 +385,15 @@ export default function ApplicationHome() {
414
385
text : < TabLabel > { trans ( "home.queryLibrary" ) } </ TabLabel > ,
415
386
routePath : QUERY_LIBRARY_URL ,
416
387
routeComp : QueryLibraryEditor ,
417
- icon : ( { selected, ...otherProps } ) =>
418
- selected ? (
419
- < HomeQueryLibraryActiveIcon { ...otherProps } />
420
- ) : (
421
- < HomeQueryLibraryIcon { ...otherProps } />
422
- ) ,
388
+ icon : ( { selected, ...otherProps } ) => selected ? < HomeQueryLibraryIcon { ...otherProps } width = { "24px" } /> : < HomeQueryLibraryIcon { ...otherProps } width = { "24px" } /> ,
423
389
visible : ( { user } ) => user . orgDev ,
424
390
} ,
425
391
{
426
392
text : < TabLabel > { trans ( "home.datasource" ) } </ TabLabel > ,
427
393
routePath : DATASOURCE_URL ,
428
394
routePathExact : false ,
429
395
routeComp : DatasourceHome ,
430
- icon : ( { selected, ...otherProps } ) =>
431
- selected ? (
432
- < HomeDataSourceActiveIcon { ...otherProps } />
433
- ) : (
434
- < HomeDataSourceIcon { ...otherProps } />
435
- ) ,
396
+ icon : ( { selected, ...otherProps } ) => selected ? < HomeDataSourceIcon { ...otherProps } width = { "24px" } /> : < HomeDataSourceIcon { ...otherProps } width = { "24px" } /> ,
436
397
visible : ( { user } ) => user . orgDev ,
437
398
onSelected : ( _ , currentPath ) => currentPath . split ( "/" ) [ 1 ] === "datasource" ,
438
399
} ,
@@ -441,12 +402,7 @@ export default function ApplicationHome() {
441
402
routePath : SETTING ,
442
403
routePathExact : false ,
443
404
routeComp : Setting ,
444
- icon : ( { selected, ...otherProps } ) =>
445
- selected ? (
446
- < HomeSettingsActiveIcon { ...otherProps } />
447
- ) : (
448
- < HomeSettingsIcon { ...otherProps } />
449
- ) ,
405
+ icon : ( { selected, ...otherProps } ) => selected ? < HomeSettingIcon { ...otherProps } width = { "24px" } /> : < HomeSettingIcon { ...otherProps } width = { "24px" } /> ,
450
406
visible : ( { user } ) => user . orgDev ,
451
407
onSelected : ( _ , currentPath ) => currentPath . split ( "/" ) [ 1 ] === "setting" ,
452
408
} ,
0 commit comments