Skip to content

Commit

Permalink
tweak(ext/cfx-ui): always show topbar menu chat item
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium committed Sep 25, 2023
1 parent 4a1dc4c commit bbd84b1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { returnTrue } from "cfx/utils/functional";
import { observer } from "mobx-react-lite";
import { currentGameNameIs } from "cfx/base/gameRuntime";
import { GameName } from "cfx/base/game";
import { usePlatformStatusService } from "../../services/platformStatus/platformStatus.service";
import { StatusLevel } from "../../services/platformStatus/types";
import { $L } from "cfx/common/services/intl/l10n";

interface IHomePageNavBarLink {
Expand Down Expand Up @@ -38,8 +36,8 @@ const homePageNavBarLinks: IHomePageNavBarLink[] = [
},
{
href: 'https://discord.gg/fivem',
label: 'Chat',
visible: () => usePlatformStatusService().is(StatusLevel.AllSystemsOperational),
label: 'Discord',
visible: returnTrue,
},
];

Expand Down

0 comments on commit bbd84b1

Please sign in to comment.