From 8c16d321947ec493b7a7d5741b0f01032ad09257 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Wed, 27 Mar 2024 20:10:20 +0800 Subject: [PATCH] feat: make delegation details responsive --- src/features/core/components/table.tsx | 5 +- .../staking/components/delegation-details.tsx | 297 ++++++++++++------ .../staking/components/validators-table.tsx | 4 + 3 files changed, 201 insertions(+), 105 deletions(-) diff --git a/src/features/core/components/table.tsx b/src/features/core/components/table.tsx index 0437fbf..ecffd23 100644 --- a/src/features/core/components/table.tsx +++ b/src/features/core/components/table.tsx @@ -3,6 +3,7 @@ import type { PropsWithChildren } from "react"; import { chevron } from "../lib/icons"; type Props = PropsWithChildren & { + mobile?: boolean; onSort?: (method: SortMethod) => void; rigthAlign?: boolean; sort?: SortMethod; @@ -11,6 +12,7 @@ type Props = PropsWithChildren & { export const HeaderTitleBase = ({ children, + mobile, onSort, rigthAlign, sort, @@ -22,8 +24,9 @@ export const HeaderTitleBase = ({ return (