Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
MRamanenkau committed Mar 3, 2024
1 parent 498fcd8 commit bf4b6c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/apps/public/locales/en/apps-routing.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"nav.files": "Files (IPFS)",
"nav.gilt": "Gilt",
"nav.github": "GitHub",
"nav.home": "Community Portal",
"nav.js": "JavaScript",
"nav.membership": "Membership",
"nav.nfts": "NFTs",
Expand Down
1 change: 1 addition & 0 deletions packages/apps/public/locales/en/apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"You are not connected to a node. Ensure that your node is running and that the Websocket endpoint is reachable.": "You are not connected to a node. Ensure that your node is running and that the Websocket endpoint is reachable.",
"custom endpoint": "custom endpoint",
"nav.github": "nav.github",
"nav.home": "nav.home",
"nav.wiki": "nav.wiki",
"transfer received": "transfer received",
"update on #{{index}}": "update on #{{index}}",
Expand Down
12 changes: 6 additions & 6 deletions packages/apps/src/Menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type {Route, Routes, TFunction} from '@polkadot/apps-routing/types';
import type { Route, Routes } from '@polkadot/apps-routing/types';
import type { ApiProps } from '@polkadot/react-api/types';
import type { AccountId } from '@polkadot/types/interfaces';
import type { Group, Groups, ItemRoute } from './types.js';
Expand All @@ -24,11 +24,11 @@ interface Props {
className?: string;
}

function createExternals (t: TFunction): ItemRoute[] {
return [
{ href: 'https://portal.cere.network', icon: 'book', name: 'Home', text: t<string>('nav.home', 'Community Portal', { ns: 'apps-routing' }) }
];
}
function createExternals (t: (key: string, optionsOrText?: string | { replace: Record<string, unknown> }, options?: { ns: string }) => string): ItemRoute[] {
return [
{ href: 'https://portal.cere.network', icon: 'book', name: 'Home', text: t('nav.home', 'Community Portal', { ns: 'apps-routing' }) }
];
}

function checkVisible ({ api, isApiConnected, isApiReady, isDevelopment: isApiDevelopment }: ApiProps, allowTeleport: boolean, hasAccounts: boolean, hasSudo: boolean, { isDevelopment, isHidden, needsAccounts, needsApi, needsApiCheck, needsApiInstances, needsSudo, needsTeleport }: Route['display']): boolean {
if (isHidden) {
Expand Down

0 comments on commit bf4b6c6

Please sign in to comment.