Skip to content

Commit

Permalink
Merge pull request #12 from subspace/fix/small-ui-issues
Browse files Browse the repository at this point in the history
fix(UI): Small UI issues
  • Loading branch information
dnoishi authored Sep 27, 2023
2 parents 4fbbd30 + a6be18b commit 82a6157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
13 changes: 4 additions & 9 deletions lib/hooks/useNavItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import outputRootsIcon from 'icons/output_roots.svg';
import privateTagIcon from 'icons/privattags.svg';
import publicTagIcon from 'icons/publictags.svg';
import apiDocsIcon from 'icons/restAPI.svg';
import rpcIcon from 'icons/RPC.svg';
import rocket from 'icons/rocket.svg';
import statsIcon from 'icons/stats.svg';
import tokensIcon from 'icons/token.svg';
import topAccountsIcon from 'icons/top-accounts.svg';
Expand Down Expand Up @@ -121,14 +121,9 @@ export default function useNavItems(): ReturnType {
isActive: pathname === '/graphiql',
} : null,
{
text: 'RPC API',
icon: rpcIcon,
url: 'https://docs.blockscout.com/for-users/api/rpc-endpoints',
},
{
text: 'Eth RPC API',
icon: rpcIcon,
url: ' https://docs.blockscout.com/for-users/api/eth-rpc',
text: 'Developer Docs',
icon: rocket,
url: 'https://docs.subspace.network/docs/developers/intro',
},
].filter(Boolean);

Expand Down
25 changes: 0 additions & 25 deletions ui/snippets/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,17 @@ import discordIcon from 'icons/social/discord.svg';
import gitIcon from 'icons/social/git.svg';
import twitterIcon from 'icons/social/tweet.svg';
import type { ResourceError } from 'lib/api/resources';
import useApiQuery from 'lib/api/useApiQuery';
import useFetch from 'lib/hooks/useFetch';
import IndexingAlertIntTxs from 'ui/home/IndexingAlertIntTxs';
import NetworkAddToWallet from 'ui/shared/NetworkAddToWallet';

import ColorModeToggler from '../header/ColorModeToggler';
import FooterLinkItem from './FooterLinkItem';
import getApiVersionUrl from './utils/getApiVersionUrl';

const MAX_LINKS_COLUMNS = 3;

const FRONT_VERSION_URL = `https://github.com/blockscout/frontend/tree/${ config.UI.footer.frontendVersion }`;

const Footer = () => {

const { data: backendVersionData } = useApiQuery('config_backend_version', {
queryOptions: {
staleTime: Infinity,
},
});
const apiVersionUrl = getApiVersionUrl(backendVersionData?.backend_version);
const BLOCKSCOUT_LINKS = [
{
icon: editIcon,
Expand Down Expand Up @@ -100,21 +90,6 @@ const Footer = () => {
<Box mt={{ base: 5, lg: '44px' }}>
<Link fontSize="xs" href="https://subspace.network/">Subspace Network</Link>
</Box>
<Text mt={ 3 } maxW={{ base: 'unset', lg: '470px' }} fontSize="xs">
Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.
</Text>
<VStack spacing={ 1 } mt={ 6 } alignItems="start">
{ apiVersionUrl && (
<Text fontSize="xs">
Backend: <Link href={ apiVersionUrl } target="_blank">{ backendVersionData?.backend_version }</Link>
</Text>
) }
{ (config.UI.footer.frontendVersion || config.UI.footer.frontendCommit) && (
<Text fontSize="xs">
Frontend: <Link href={ FRONT_VERSION_URL } target="_blank">{ config.UI.footer.frontendVersion }</Link>
</Text>
) }
</VStack>
</Box>
<Grid
gap={{ base: 6, lg: 12 }}
Expand Down

0 comments on commit 82a6157

Please sign in to comment.