mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Merge branch 'feature/mod-tools' of https://github.com/billsonnn/nitro-react into feature/mod-tools
This commit is contained in:
commit
a9043bf21e
@ -29,6 +29,7 @@ export const ToolbarView: FC<ToolbarViewProps> = props =>
|
||||
const [ unseenInventoryCount, setUnseenInventoryCount ] = useState(0);
|
||||
const [ unseenAchievementCount, setUnseenAchievementCount ] = useState(0);
|
||||
|
||||
const isMod = GetSessionDataManager().isModerator;
|
||||
const unseenFriendListCount = 0;
|
||||
|
||||
const onUserInfoEvent = useCallback((event: UserInfoEvent) =>
|
||||
@ -200,9 +201,10 @@ export const ToolbarView: FC<ToolbarViewProps> = props =>
|
||||
<div className="navigation-item" onClick={ event => handleToolbarItemClick(ToolbarViewItems.CAMERA_ITEM) }>
|
||||
<i className="icon icon-camera"></i>
|
||||
</div>) }
|
||||
{ isMod && (
|
||||
<div className="navigation-item" onClick={ event => handleToolbarItemClick(ToolbarViewItems.MOD_TOOLS_ITEM) }>
|
||||
<i className="icon icon-modtools"></i>
|
||||
</div>
|
||||
</div>) }
|
||||
</div>
|
||||
<div id="toolbar-chat-input-container" className="d-flex align-items-center" />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user