Skip to content

Commit acfdbb7

Browse files
committed
feat: remove revert tokens page when in core-registry mode
1 parent bd4f480 commit acfdbb7

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

src/renderer/components/blocks/layout/LeftNav.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useCallback } from 'react';
22
import { useLocation, useNavigate } from 'react-router-dom';
33
import { FormattedMessage } from 'react-intl';
4-
import { Card, NoHomeOrgModal, Sidebar, Tooltip } from '@/components';
4+
import { Card, NoHomeOrgModal, Sidebar } from '@/components';
55
import ROUTES from '@/routes/route-constants';
66
import { RiTokenSwapLine } from 'react-icons/ri';
77
import { useSelector } from 'react-redux';
@@ -35,24 +35,7 @@ const LeftNav = () => {
3535
<FormattedMessage id="create-tokens" />
3636
</p>
3737
</Sidebar.Item>
38-
{coreRegistryMode ? (
39-
<div className="cursor-not-allowed line-through decoration-leftNavText flex items-center justify-center rounded-lg p-2 font-normal text-leftNavText dark:text-gray-400">
40-
<Tooltip
41-
content={
42-
<p className="sentence-case">
43-
<FormattedMessage id="not-available-in-core-registry-mode" />
44-
</p>
45-
}
46-
placement="bottom"
47-
>
48-
<div className="">
49-
<p className="capitalize w-full">
50-
<FormattedMessage id="revert-tokens" />
51-
</p>
52-
</div>
53-
</Tooltip>
54-
</div>
55-
) : (
38+
{!coreRegistryMode && (
5639
<Sidebar.Item
5740
style={{ cursor: 'pointer' }}
5841
active={isActive(ROUTES.REVERT_TOKENS)}

src/renderer/store/slices/app/app.initialstate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const initialState: AppState = {
1212
locale: null,
1313
apiHost: 'http://localhost:31311',
1414
apiKey: null,
15-
coreRegistryMode: false,
15+
coreRegistryMode: true,
1616
configFileLoaded: false,
1717
isDarkTheme: false,
1818
isCoreRegistryUiApp: false,

0 commit comments

Comments
 (0)