Skip to content

Commit dedbae7

Browse files
authored
fix: update apr and table height (#1978)
1 parent b965e07 commit dedbae7

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

apps/namadillo/src/App/AccountOverview/StakeSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const StakeSidebar = (): JSX.Element => {
5959
Claim
6060
</ActionButton>
6161
<footer className="text-center leading-snug">
62-
{chainParams.data?.apr.toFixed(2)}%
62+
{chainParams.data?.apr.multipliedBy(100).toFixed(2)}%
6363
<div className="text-xxs text-center">Est. Rewards Rate</div>
6464
</footer>
6565
</Panel>

apps/namadillo/src/App/AccountOverview/UnshieldedAssetTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ const TransparentTokensTable = ({
144144
Tokens
145145
</div>
146146
<TableWithPaginator
147+
containerClassName="h-screen"
147148
id="transparent-tokens"
148149
headers={headers.concat("")}
149150
renderRow={renderRow}

apps/namadillo/src/App/Common/TableWithPaginator.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type TableWithPaginatorProps<T> = {
1212
pageCount?: number;
1313
onPageChange?: (page: number) => void;
1414
children?: React.ReactNode;
15+
containerClassName?: string;
1516
} & Pick<React.ComponentProps<typeof StyledTable>, "tableProps" | "headProps">;
1617

1718
export const TableWithPaginator = <T,>({
@@ -25,6 +26,7 @@ export const TableWithPaginator = <T,>({
2526
children,
2627
tableProps,
2728
headProps,
29+
containerClassName,
2830
}: TableWithPaginatorProps<T>): JSX.Element => {
2931
const containerRef = useRef<HTMLDivElement>(null);
3032
const [rows, setRows] = useState<TableRow[]>([]);
@@ -80,7 +82,8 @@ export const TableWithPaginator = <T,>({
8082
<div
8183
ref={containerRef}
8284
className={clsx(
83-
"grid grid-rows-[1fr_auto] h-screen flex-1 overflow-hidden w-full gap-2"
85+
containerClassName,
86+
"grid grid-rows-[1fr_auto] flex-1 overflow-hidden w-full gap-2"
8487
)}
8588
>
8689
{styledTable}

apps/namadillo/src/App/Masp/ShieldedFungibleTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export const ShieldedFungibleTable = ({
143143
Tokens
144144
</div>
145145
<TableWithPaginator
146+
containerClassName="h-screen"
146147
id="shielded-tokens"
147148
headers={headers.concat("")}
148149
renderRow={renderRow}

0 commit comments

Comments
 (0)