Skip to content

Commit

Permalink
feat: add minimum operating balance column
Browse files Browse the repository at this point in the history
  • Loading branch information
mohandast52 committed Sep 2, 2024
1 parent 0711f2e commit b6e6760
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/operate/components/Contracts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import { Caption, TextWithTooltip } from 'libs/ui-components/src';
import { BREAK_POINT } from 'libs/ui-theme/src';
import { CHAIN_NAMES, GOVERN_URL, NA, UNICODE_SYMBOLS } from 'libs/util-constants/src';

import { useStakingContractsList } from './hooks';
import { RunAgentButton } from 'components/RunAgentButton';

import { useStakingContractsList } from './hooks';

const StyledMain = styled.main`
display: flex;
flex-direction: column;
Expand All @@ -31,6 +32,7 @@ const columns: ColumnsType<StakingContract> = [
title: 'Chain',
dataIndex: 'chainId',
key: 'chainId',
width: 120,
render: (chainId) => <Text type="secondary">{CHAIN_NAMES[chainId] || chainId}</Text>,
},
{
Expand All @@ -51,6 +53,13 @@ const columns: ColumnsType<StakingContract> = [
key: 'stakeRequired',
render: (stakeRequired) => <Text>{stakeRequired}</Text>,
},
{
title: 'Minimum operating balance required',
dataIndex: 'minOperatingBalance',
key: 'minOperatingBalance',
width: 180,
render: (minOperatingBalance) => <Text>{minOperatingBalance || NA}</Text>,
},
{
title: () => (
<TextWithTooltip
Expand All @@ -67,7 +76,7 @@ const columns: ColumnsType<StakingContract> = [
),
dataIndex: 'availableOn',
key: 'availableOn',
render: (availableOn) => <RunAgentButton availableOn={availableOn}/>,
render: (availableOn) => <RunAgentButton availableOn={availableOn} />,
},
];

Expand Down Expand Up @@ -110,6 +119,7 @@ export const ContractsPage = () => {
</>
),
}}
scroll={{ x: 768 }}
/>
</Card>
</StyledMain>
Expand Down

0 comments on commit b6e6760

Please sign in to comment.