Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Jun 29, 2024
2 parents 9131898 + bc2c7d3 commit 7beb43e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
8 changes: 0 additions & 8 deletions src/pages/WorkersPage/AddNewWorker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,6 @@ function AddWorkerForm() {
formik={formik}
/>
</FormRow>
<FormRow>
<FormikTextInput
showErrorOnlyOfTouched
id="email"
label="Email address"
formik={formik}
/>
</FormRow>
<FormRow>
<FormikTextInput
showErrorOnlyOfTouched
Expand Down
5 changes: 4 additions & 1 deletion src/pages/WorkersPage/DelegationCapacity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export function DelegationCapacity({ worker }: { worker: { delegationCapacity: n
<Stack direction="row" spacing={1} alignItems="center">
<BarWrapper>
{RANGES.map((v, i) => (
<Bar key={i} className={classNames(v < delegationCapacity ? color : undefined)} />
<Bar
key={i}
className={classNames(v < delegationCapacity || i === 0 ? color : undefined)}
/>
))}
</BarWrapper>
<Box display="flex">{percentFormatter(delegationCapacity)}</Box>
Expand Down
8 changes: 0 additions & 8 deletions src/pages/WorkersPage/Worker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { useParams, useSearchParams } from 'react-router-dom';

import { useWorkerByPeerId, WorkerStatus } from '@api/subsquid-network-squid';
import { Card } from '@components/Card';
import { CopyToClipboard } from '@components/CopyToClipboard';
import { Loader } from '@components/Loader';
import { NotFound } from '@components/NotFound';
import { CenteredPageWrapper, NetworkPageTitle } from '@layouts/NetworkLayout';
Expand Down Expand Up @@ -142,19 +141,12 @@ export const Worker = ({ backPath }: { backPath: string }) => {
)}
</WorkerDescValue>
</Stack>
<Stack direction="row">
<WorkerDescLabel>Contact</WorkerDescLabel>
<WorkerDescValue>
{worker.email ? <CopyToClipboard text={worker.email} /> : '-'}
</WorkerDescValue>
</Stack>
<Stack direction="row">
<WorkerDescLabel>Description</WorkerDescLabel>
<WorkerDescValue>{worker.description || '-'}</WorkerDescValue>
</Stack>
</Stack>
</Box>

<Box>
<Title>Bond</Title>
<Stack spacing={2}>
Expand Down
8 changes: 0 additions & 8 deletions src/pages/WorkersPage/WorkerEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ function WorkerForm({
formik={formik}
/>
</FormRow>
<FormRow>
<FormikTextInput
showErrorOnlyOfTouched
id="email"
label="Email address"
formik={formik}
/>
</FormRow>
<FormRow>
<FormikTextInput showErrorOnlyOfTouched id="website" label="Website" formik={formik} />
</FormRow>
Expand Down

0 comments on commit 7beb43e

Please sign in to comment.