Skip to content

Commit

Permalink
Update portal columns option and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirag-S-Kotian committed Dec 7, 2024
1 parent 9b79dfa commit 63e426d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
19 changes: 12 additions & 7 deletions explorer/src/constants/columns/portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { TdHandler } from "@/components/DataTable/components/TdHandler";
import { HelperIndicator } from "@/components/HelperIndicator";
import { Link } from "@/components/Link";
import { EMPTY_STRING, ZERO, ZERO_ADDRESS } from "@/constants";
import { ColumnsOptions } from "@/interfaces/components";
import { toPortalById } from "@/routes/constants";
import { getBlockExplorerLink } from "@/utils";
import { cropString } from "@/utils/stringUtils";
Expand Down Expand Up @@ -57,15 +58,19 @@ export const columns = ({ chain }: { chain: Chain }): ColumnDef<Portal>[] => [
},
];

export const portalColumnsOption = {
name: {
width: "25%",
export const portalColumnsOption: ColumnsOptions = {
0: {
minWidth: 150,
maxWidth: 200,
isRandomWidth: true,
},
description: {
width: "50%",
1: {
minWidth: 200,
maxWidth: 400,
isRandomWidth: true,
},
owner: {
width: "25%",
2: {
width: 150,
},
};

Expand Down
3 changes: 2 additions & 1 deletion explorer/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Address } from "viem";
import { arbitrum, arbitrumSepolia, base, baseSepolia, bsc, bscTestnet, linea } from "wagmi/chains";

import { lineaSepolia } from "@/config";
Expand All @@ -10,7 +11,7 @@ export const DASH = "-";
export const ZERO_STRING = "0";
export const TEN = 10;
export const ZERO = 0;
export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000" as `0x${string}`;
export const ZERO_ADDRESS: Address = "0x0000000000000000000000000000000000000000";
export const ITEMS_PER_PAGE_DEFAULT = 10;
export const ITEMS_SEARCHED_DEFAULT = 100;
export const CURRENT_PAGE_DEFAULT = 1;
Expand Down

0 comments on commit 63e426d

Please sign in to comment.