This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add custom fields based on pool type
- Loading branch information
1 parent
97b556e
commit 8187760
Showing
6 changed files
with
189 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 21 additions & 10 deletions
31
src/features/pool/components/PoolSummary/PoolSummary.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { PoolType } from "@/types"; | ||
|
||
import { PoolSummary, PoolSummaryProps } from "./PoolSummary"; | ||
|
||
const defaultProps = { | ||
chainId: 1, | ||
name: "Beta Round", | ||
poolId: "1", | ||
strategyName: PoolType.QuadraticFunding, | ||
applicationsStartTime: "2024-12-09T19:22:56.413Z", | ||
applicationsEndTime: "2024-12-10T19:23:30.678Z", | ||
donationsStartTime: "2024-12-09T19:22:56.413Z", | ||
donationsEndTime: "2024-12-09T19:22:56.413Z", | ||
}; | ||
|
||
const meta: Meta<PoolSummaryProps> = { | ||
title: "Features/Pool/PoolSummary", | ||
component: PoolSummary, | ||
args: { | ||
chainId: 1, | ||
name: "Beta Round", | ||
poolId: "1", | ||
strategyName: "allov2.DonationVotingMerkleDistributionDirectTransferStrategy", | ||
applicationsStartTime: "2024-12-09T19:22:56.413Z", | ||
applicationsEndTime: "2024-12-10T19:23:30.678Z", | ||
donationsStartTime: "2024-12-09T19:22:56.413Z", | ||
donationsEndTime: "2024-12-09T19:22:56.413Z", | ||
}, | ||
args: defaultProps, | ||
} satisfies Meta; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof PoolSummary>; | ||
|
||
export const Default: Story = {}; | ||
|
||
export const Retrofunding: Story = { | ||
args: { | ||
...defaultProps, | ||
strategyName: PoolType.Retrofunding, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters