File tree 1 file changed +15
-0
lines changed
client/packages/lowcoder/src/pages/ApplicationV2
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
TRASH_URL ,
11
11
NEWS_URL ,
12
12
ORG_HOME_URL ,
13
+ SUBSCRIPTION_SETTING ,
13
14
} from "constants/routesURL" ;
14
15
import { getUser , isFetchingUser } from "redux/selectors/usersSelectors" ;
15
16
import { useDispatch , useSelector } from "react-redux" ;
@@ -57,6 +58,7 @@ import { trans } from "../../i18n";
57
58
import { foldersSelector } from "../../redux/selectors/folderSelector" ;
58
59
import Setting from "pages/setting" ;
59
60
import { Support } from "pages/support" ;
61
+ import { Subscription } from "pages/setting/subscriptions"
60
62
// import { TypographyText } from "../../components/TypographyText";
61
63
// import { messageInstance } from "lowcoder-design/src/components/GlobalInstances";
62
64
import { isEE } from "util/envUtils" ;
@@ -248,6 +250,19 @@ export default function ApplicationHome() {
248
250
] ,
249
251
} : { items : [ ] } ,
250
252
253
+ ! supportSubscription && user . orgDev ? {
254
+ items : [
255
+ {
256
+ text : < TabLabel > { trans ( "home.support" ) } </ TabLabel > ,
257
+ routePath : SUBSCRIPTION_SETTING ,
258
+ routeComp : Subscription ,
259
+ routePathExact : false ,
260
+ icon : ( { selected, ...otherProps } ) => selected ? < SupportIcon { ...otherProps } width = { "24px" } /> : < SupportIcon { ...otherProps } width = { "24px" } /> ,
261
+ mobileVisible : true ,
262
+ } ,
263
+ ] ,
264
+ } : { items : [ ] } ,
265
+
251
266
supportSubscription && user . orgDev ? {
252
267
items : [
253
268
{
You can’t perform that action at this time.
0 commit comments