diff --git a/src/components/auth/AuthorizationPanel.tsx b/src/components/auth/AuthorizationPanel.tsx index 9d558bfa5..ecf8c63de 100644 --- a/src/components/auth/AuthorizationPanel.tsx +++ b/src/components/auth/AuthorizationPanel.tsx @@ -3,7 +3,7 @@ import { getCurrentUrlOrigin } from 'src/utils/url' import urlJoin from 'src/utils/url-join' import { NotificationsBell, useNotifCounterContext } from '../activity/NotifCounter' import { NewPostButtonInTopMenu } from '../posts/NewPostButtonInTopMenu' -import { MyAccountPopup } from '../profiles/address-views' +import { MyAccountPopup } from '../profile-selector/MyAccountMenu' import { isServerSide } from '../utils' import { useMyAddress } from './MyAccountsContext' diff --git a/src/components/profile-selector/MyAccountMenu.tsx b/src/components/profile-selector/MyAccountMenu.tsx index eba092847..1933817a9 100644 --- a/src/components/profile-selector/MyAccountMenu.tsx +++ b/src/components/profile-selector/MyAccountMenu.tsx @@ -86,6 +86,9 @@ export const AccountMenu: React.FunctionComponent = ({ address, ow } }, []) + const origin = getCurrentUrlOrigin() + const isDevMode = origin.includes('localhost') + return ( { @@ -101,21 +104,23 @@ export const AccountMenu: React.FunctionComponent = ({ address, ow className='DfCurrentAddress icon CursorPointer' > -