Skip to content

Commit e2b2167

Browse files
author
FalkWolsky
committedFeb 16, 2025
Placing Support Icon at Main
1 parent 37191aa commit e2b2167

File tree

1 file changed

+15
-0
lines changed
  • client/packages/lowcoder/src/pages/ApplicationV2

1 file changed

+15
-0
lines changed
 

‎client/packages/lowcoder/src/pages/ApplicationV2/index.tsx

+15
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
TRASH_URL,
1111
NEWS_URL,
1212
ORG_HOME_URL,
13+
SUBSCRIPTION_SETTING,
1314
} from "constants/routesURL";
1415
import { getUser, isFetchingUser } from "redux/selectors/usersSelectors";
1516
import { useDispatch, useSelector } from "react-redux";
@@ -57,6 +58,7 @@ import { trans } from "../../i18n";
5758
import { foldersSelector } from "../../redux/selectors/folderSelector";
5859
import Setting from "pages/setting";
5960
import { Support } from "pages/support";
61+
import { Subscription } from "pages/setting/subscriptions"
6062
// import { TypographyText } from "../../components/TypographyText";
6163
// import { messageInstance } from "lowcoder-design/src/components/GlobalInstances";
6264
import { isEE } from "util/envUtils";
@@ -248,6 +250,19 @@ export default function ApplicationHome() {
248250
],
249251
} : { items: [] },
250252

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+
251266
supportSubscription && user.orgDev ? {
252267
items: [
253268
{

0 commit comments

Comments
 (0)