Skip to content

Commit

Permalink
fix: issue with sidebar context menu links
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Oct 27, 2022
1 parent df9dfbf commit 23a2738
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion electron/renderer/src/components/context/ContextMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const ContextMenu = ({position, children, setAccountContextHidden}) => {
};

return (
<div className="ContextMenu" onClickCapture={hide} ref={menuRef}>
<div className="ContextMenu" ref={menuRef}>
{children}
</div>
);
Expand Down
10 changes: 7 additions & 3 deletions electron/renderer/src/components/context/EditAccountMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ import {AccountSelector} from '../../selector/AccountSelector';
const EditAccountMenu = ({accountId, accountIndex, isAtLeastAdmin, lifecycle, sessionId, ...connected}) => {
return (
<ContextMenu>
{isAtLeastAdmin && (
<ContextMenuItem onClick={() => window.open('https://teams.wire.com/login/')}>
{/* This appears to have been broken for some time. Removing it for the time being until a proper fix can be applied
https://wearezeta.atlassian.net/browse/FS-1124
{isAtLeastAdmin && (
<ContextMenuItem onClick={() => {
window.open('https://teams.wire.com/login/');
}}>
{getText('wrapperManageTeam')}
</ContextMenuItem>
)}
)} */}
{lifecycle === EVENT_TYPE.LIFECYCLE.SIGNED_IN && (
<ContextMenuItem
onClick={() => {
Expand Down
9 changes: 5 additions & 4 deletions electron/renderer/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
*/

import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';

import {createRoot} from 'react-dom/client';
import {EVENT_TYPE} from '../../dist/lib/eventType';
import App from './components/App';
import configureStore from './configureStore';
Expand All @@ -43,9 +42,11 @@ window.addEventListener(
);
window.addEventListener(EVENT_TYPE.ACTION.START_LOGIN, event => store.dispatch(addAccountWithSession()), false);

render(
const container = document.getElementById('root');
const root = createRoot(container);

root.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root'),
);
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8171,7 +8171,7 @@ oauth-sign@~0.9.0:
object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==

object-inspect@^1.12.2, object-inspect@^1.7.0, object-inspect@^1.8.0, object-inspect@^1.9.0:
version "1.12.2"
Expand Down

0 comments on commit 23a2738

Please sign in to comment.