Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Jun 26, 2024
1 parent 3291b99 commit 4e884d3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
52 changes: 26 additions & 26 deletions src/components/PoolList/PoolItem/PoolItem.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { tokens } from '../../../stories/data';
import { PositionItem } from './PoolItem';
// import { tokens } from '../../../stories/data';
// import { PositionItem } from './PoolItem';

import type { Meta, StoryObj } from '@storybook/react';
// import type { Meta, StoryObj } from '@storybook/react';

const meta = {
title: 'PositionItem',
component: PositionItem
} satisfies Meta<typeof PositionItem>;
// const meta = {
// title: 'PositionItem',
// component: PositionItem
// } satisfies Meta<typeof PositionItem>;

export default meta;
type Story = StoryObj<typeof meta>;
// export default meta;
// type Story = StoryObj<typeof meta>;

export const Primary: Story = {
args: {
tokenXName: 'BTC',
tokenYName: 'AZERO',
tokenXIcon: tokens[0].logoURI,
tokenYIcon: tokens[1].logoURI,
tokenXLiq: 5000,
tokenYLiq: 300.2,
min: 2149.6,
max: 149.6,
fee: 0.05,
valueX: 10000.45,
valueY: 2137.4,
id: 0,
address: ''
}
};
// export const Primary: Story = {
// args: {
// tokenXName: 'BTC',
// tokenYName: 'AZERO',
// tokenXIcon: tokens[0].logoURI,
// tokenYIcon: tokens[1].logoURI,
// tokenXLiq: 5000,
// tokenYLiq: 300.2,
// min: 2149.6,
// max: 149.6,
// fee: 0.05,
// valueX: 10000.45,
// valueY: 2137.4,
// id: 0,
// address: ''
// }
// };
12 changes: 6 additions & 6 deletions src/components/PoolList/PoolItem/PoolItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ export const PositionItem: React.FC<IPositionItem> = ({
// tokenXLiq,
// tokenYLiq,
fee,
min,
max,
valueX,
valueY,
// min,
// max,
// valueX,
// valueY,
isActive = false,
tokenXId,
poolAddress,
currentPrice,
liquidity
currentPrice
// liquidity
}) => {
const { classes } = useStyles();

Expand Down
2 changes: 1 addition & 1 deletion src/components/PoolList/PoolList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const PoolList: React.FC<IProps> = ({
initialPage,
setLastPage,
data,
onAddPositionClick,
// onAddPositionClick,
loading = false,
showNoConnected = false,
noConnectedBlockerProps,
Expand Down

0 comments on commit 4e884d3

Please sign in to comment.