fix article cards, label, remove profit margin from StakeTable
This commit is contained in:
@@ -100,7 +100,7 @@ export default async function Account({
|
||||
<Grid size={12}>
|
||||
<SectionHeading title="Onboarding" />
|
||||
</Grid>
|
||||
<BlogArticlesCards limit={2} />
|
||||
<BlogArticlesCards limit={4} />
|
||||
</Grid>
|
||||
</ContentLayout>
|
||||
);
|
||||
|
||||
@@ -60,8 +60,6 @@ export default async function NymNode({
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log("observatoryNymNode :>> ", observatoryNymNode);
|
||||
|
||||
const nodeDelegationsResponse = await fetch(
|
||||
`${DATA_OBSERVATORY_NODES_URL}/${id}/delegations`,
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ export default async function Home() {
|
||||
<Grid size={12}>
|
||||
<SectionHeading title="Onboarding" />
|
||||
</Grid>
|
||||
<BlogArticlesCards limit={2} />
|
||||
<BlogArticlesCards limit={4} />
|
||||
</Grid>
|
||||
</ContentLayout>
|
||||
);
|
||||
|
||||
@@ -31,8 +31,8 @@ const BlogArticlesCards = async ({ limit }: { limit?: number }) => {
|
||||
.sort((a, b) => {
|
||||
// sort by date
|
||||
return (
|
||||
new Date(a.attributes.date).getTime() -
|
||||
new Date(b.attributes.date).getTime()
|
||||
new Date(b.attributes.date).getTime() -
|
||||
new Date(a.attributes.date).getTime()
|
||||
);
|
||||
})
|
||||
.map((blogArticle) => {
|
||||
|
||||
@@ -81,7 +81,7 @@ export const NodeRewardsCard = (props: INodeRewardsCardProps) => {
|
||||
/>
|
||||
<ExplorerListItem
|
||||
row
|
||||
label="Saturation point"
|
||||
label="Node stake saturation"
|
||||
value={nodeSaturationPoint}
|
||||
/>
|
||||
</ExplorerCard>
|
||||
|
||||
@@ -300,17 +300,6 @@ const StakeTable = ({ nodes }: { nodes: MappedNymNodes }) => {
|
||||
</Typography>
|
||||
),
|
||||
},
|
||||
{
|
||||
id: "profitMarginPercentage",
|
||||
header: "Profit margin",
|
||||
accessorKey: "profitMarginPercentage",
|
||||
Header: <ColumnHeading>Profit margin</ColumnHeading>,
|
||||
Cell: ({ row }) => (
|
||||
<Typography variant="body4">
|
||||
{row.original.node?.profitMarginPercentage || 0 * 100}%
|
||||
</Typography>
|
||||
),
|
||||
},
|
||||
{
|
||||
id: "Favorite",
|
||||
header: "Favorite",
|
||||
|
||||
Reference in New Issue
Block a user