Skip to content

Commit

Permalink
Merge pull request #28 from subsquid/develop
Browse files Browse the repository at this point in the history
fix: link color & remove hover effect
  • Loading branch information
mo4islona authored Jun 3, 2024
2 parents 47614ef + c154820 commit 860536e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
WALLET_CONNECT_PROJECT_ID=b7b3d81af86feb2af54461f26b665ee4
TESTNET_SQUID_API_URL=https://subsquid.squids.live/subsquid-network-testnet/v/v1/graphql
MAINNET_SQUID_API_URL=https://subsquid.squids.live/subsquid-network-mainnet/v/v1/graphql
TESTNET_SQUID_API_URL=https://subsquid.squids.live/subsquid-network-testnet/graphql
MAINNET_SQUID_API_URL=https://subsquid.squids.live/subsquid-network-mainnet/graphql
1 change: 0 additions & 1 deletion src/components/PeerId/PeerId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ export const PeerIdShort = styled(Box, {
name: 'PeerIdShort',
})(() => ({
minWidth: 90,
opacity: 0.8,
}));
2 changes: 1 addition & 1 deletion src/pages/DashboardPage/Workers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function Workers() {
<TableBody>
{workers.map(worker => {
return (
<TableRow className="hoverable" key={worker.peerId}>
<TableRow key={worker.peerId}>
<TableCell>
<WorkerName
worker={worker}
Expand Down
10 changes: 8 additions & 2 deletions src/pages/WorkersPage/WorkerVersion.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import { Box, Stack } from '@mui/material';
import { Box, Stack, styled } from '@mui/material';
import { satisfies } from 'semver';

import { BlockchainApiWorker, useNetworkSettings } from '@api/subsquid-network-squid';
import { WarningIcon } from '@icons/WarningIcon';

export const WorkerVersionName = styled(Box, {
name: 'WorkerVersionName',
})(() => ({
whiteSpace: 'nowrap',
}));

export const WorkerVersion = ({ worker }: { worker: Pick<BlockchainApiWorker, 'version'> }) => {
const { minimalWorkerVersion, recommendedWorkerVersion } = useNetworkSettings();

return (
<>
{worker.version ? (
<Stack spacing={1} direction="row" alignItems="center">
<Box>{worker.version}</Box>
<WorkerVersionName>{worker.version}</WorkerVersionName>
{!satisfies(worker.version, recommendedWorkerVersion) ? (
!satisfies(worker.version, minimalWorkerVersion) ? (
<WarningIcon color="error" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/WorkersPage/WorkersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function MyWorkers() {
<TableBody>
{data.map(worker => {
return (
<TableRow className="hoverable" key={worker.peerId}>
<TableRow key={worker.peerId}>
<TableCell>
<WorkerName worker={worker} to={`/workers/${worker.peerId}`} />
</TableCell>
Expand Down

0 comments on commit 860536e

Please sign in to comment.