From 2782d37f05b807fe530ed68dae59877678db2d19 Mon Sep 17 00:00:00 2001 From: nguyenlejoe Date: Thu, 11 Jan 2024 15:14:02 -0800 Subject: [PATCH] change name --- .../XYKPoolTransactionsListView.stories.tsx | 19 +++++++++++++++++++ .../XYKPoolTransactionsListView.tsx} | 6 +++--- .../XYKTransactionsListView.stories.tsx | 19 ------------------- src/utils/types/organisms.types.ts | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.stories.tsx rename src/components/Organisms/XYK/{XYKTransactionsListView/XYKTransactionsListView.tsx => XYKPoolTransactionsListView/XYKPoolTransactionsListView.tsx} (98%) delete mode 100644 src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.stories.tsx diff --git a/src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.stories.tsx b/src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.stories.tsx new file mode 100644 index 00000000..d007d7ef --- /dev/null +++ b/src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.stories.tsx @@ -0,0 +1,19 @@ +import { type Meta, type StoryObj } from "@storybook/react"; +import { XYKPoolTransactionsListView } from "./XYKPoolTransactionsListView"; + +type Story = StoryObj; + +const meta: Meta = { + title: "Organisms/XYK", + component: XYKPoolTransactionsListView, +}; + +export default meta; + +export const XYKPoolTransactionsList: Story = { + args: { + chain_name: "eth-mainnet", + dex_name: "uniswap_v2", + pool_address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e", + }, +}; diff --git a/src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.tsx b/src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.tsx similarity index 98% rename from src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.tsx rename to src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.tsx index 13402cc9..96949b8a 100644 --- a/src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.tsx +++ b/src/components/Organisms/XYK/XYKPoolTransactionsListView/XYKPoolTransactionsListView.tsx @@ -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"; @@ -214,8 +214,8 @@ const columns: ColumnDef[] = [ }, ]; -export const XYKTransactionsListView: React.FC< - XYKTransactionsListViewProps +export const XYKPoolTransactionsListView: React.FC< + XYKPoolTransactionsListViewProps > = ({ chain_name, dex_name, pool_address }) => { const { covalentClient } = useCovalent(); diff --git a/src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.stories.tsx b/src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.stories.tsx deleted file mode 100644 index 8516d910..00000000 --- a/src/components/Organisms/XYK/XYKTransactionsListView/XYKTransactionsListView.stories.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { type Meta, type StoryObj } from "@storybook/react"; -import { XYKTransactionsListView } from "./XYKTransactionsListView"; - -type Story = StoryObj; - -const meta: Meta = { - title: "Organisms/XYK", - component: XYKTransactionsListView, -}; - -export default meta; - -export const XYKTransactionsList: Story = { - args: { - chain_name: "eth-mainnet", - dex_name: "uniswap_v2", - pool_address: "0x21b8065d10f73ee2e260e5b47d3344d3ced7596e", - }, -}; diff --git a/src/utils/types/organisms.types.ts b/src/utils/types/organisms.types.ts index 56162d4d..0c5c4426 100644 --- a/src/utils/types/organisms.types.ts +++ b/src/utils/types/organisms.types.ts @@ -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;