Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenlejoe committed Jan 11, 2024
1 parent 6235acf commit 2782d37
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { type Meta, type StoryObj } from "@storybook/react";
import { XYKPoolTransactionsListView } from "./XYKPoolTransactionsListView";

type Story = StoryObj<typeof XYKPoolTransactionsListView>;

const meta: Meta<typeof XYKPoolTransactionsListView> = {
title: "Organisms/XYK",
component: XYKPoolTransactionsListView,
};

export default meta;

export const XYKPoolTransactionsList: Story = {
args: {
chain_name: "eth-mainnet",
dex_name: "uniswap_v2",
pool_address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { timestampParser } from "@/utils/functions";
import { Badge } from "@/components/ui/badge";
import { TableHeaderSorting } from "@/components/ui/tableHeaderSorting";
import { GRK_SIZES } from "@/utils/constants/shared.constants";
import { type XYKTransactionsListViewProps } from "@/utils/types/organisms.types";
import { type XYKPoolTransactionsListViewProps } from "@/utils/types/organisms.types";
import { useCovalent } from "@/utils/store/Covalent";
import { handleTokenTransactions } from "@/utils/functions/pretty-exchange-amount";
import { handleExchangeType } from "@/utils/functions/exchange-type";
Expand Down Expand Up @@ -214,8 +214,8 @@ const columns: ColumnDef<ExchangeTransaction>[] = [
},
];

export const XYKTransactionsListView: React.FC<
XYKTransactionsListViewProps
export const XYKPoolTransactionsListView: React.FC<
XYKPoolTransactionsListViewProps
> = ({ chain_name, dex_name, pool_address }) => {
const { covalentClient } = useCovalent();

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/utils/types/organisms.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface TokenTransfersListViewProps {
contract_address: string;
}

export interface XYKTransactionsListViewProps {
export interface XYKPoolTransactionsListViewProps {
chain_name: Chain;
dex_name: string;
pool_address: string;
Expand Down

0 comments on commit 2782d37

Please sign in to comment.