Skip to content

Commit d85ed3e

Browse files
authored
Merge pull request #29 from lidofinance/feature/si-1880-new-main-screen
New main screen
2 parents 19abeee + a322575 commit d85ed3e

File tree

31 files changed

+124
-64
lines changed

31 files changed

+124
-64
lines changed

features/home/all-vaults/all-vaults.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Loader, Pagination } from '@lidofinance/lido-ui';
2-
import { VaultTable } from 'features/home/vault-table';
2+
import { VaultTable } from 'features/home/components/vault-table';
33
import { AllVaultsWrapper } from './styles';
44
import { useVaultsDataAll } from 'modules/vaults';
55

features/home/all-vaults/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import styled from 'styled-components';
33
export const AllVaultsWrapper = styled.div`
44
display: flex;
55
align-items: center;
6+
justify-content: center;
67
flex-direction: column;
8+
width: 100%;
79
gap: ${({ theme }) => theme.spaceMap.md}px;
810
`;

features/home/vault-table/cells/address-cell.tsx renamed to features/home/components/vault-table/cells/address-cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useEnsName } from 'wagmi';
66
import { AddressBadge } from 'shared/components/address-badge';
77
import { AddressWrapper } from './styles';
88

9-
import { BaseCellProps } from 'features/home/vault-table/types';
9+
import { BaseCellProps } from 'features/home/components/vault-table/types';
1010
import { AppPaths } from 'consts/urls';
1111

1212
export const AddressCell: FC<BaseCellProps<Address>> = ({ value }) => {

features/home/vault-table/cells/default-cell.tsx renamed to features/home/components/vault-table/cells/default-cell.tsx

File renamed without changes.

features/home/vault-table/cells/ether-cell.tsx renamed to features/home/components/vault-table/cells/ether-cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FC } from 'react';
22

33
import { formatBalance } from 'utils';
4-
import { BaseCellProps } from 'features/home/vault-table/types';
4+
import { BaseCellProps } from 'features/home/components/vault-table/types';
55

66
export const EtherCell: FC<BaseCellProps<bigint>> = ({ value }) => {
77
return <>{formatBalance(value, { maxDecimalDigits: 5 }).trimmed}</>;

features/home/vault-table/cells/header-cell.tsx renamed to features/home/components/vault-table/cells/header-cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FC } from 'react';
22

33
import { Question } from '@lidofinance/lido-ui';
4-
import { CommonHeader } from 'features/home/vault-table/styles';
4+
import { CommonHeader } from 'features/home/components/vault-table/styles';
55

66
export interface HeaderCellProps {
77
title: string;
File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { FC } from 'react';
2+
import { formatEther } from 'viem';
3+
4+
import { BaseCellProps } from '../types';
5+
6+
export const MintCell: FC<BaseCellProps<bigint>> = ({ value }) => {
7+
if (value == null) {
8+
return null;
9+
}
10+
11+
const minted = Number(formatEther(BigInt(value))).toFixed(5);
12+
13+
return <>{minted}</>;
14+
};

features/home/vault-table/cells/percent-cell.tsx renamed to features/home/components/vault-table/cells/percent-cell.tsx

File renamed without changes.

0 commit comments

Comments
 (0)