-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shinhyojeong
committed
Aug 19, 2023
1 parent
b3fd879
commit e68a05d
Showing
6 changed files
with
148 additions
and
43 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
src/components/product/PriceOfferModal/PriceOfferModal.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,12 +1,15 @@ | ||
import type { Meta, Story } from '@storybook/react' | ||
import type { PriceOfferModalProps } from './types' | ||
import { PriceOfferModal } from './index' | ||
|
||
export default { | ||
component: PriceOfferModal, | ||
title: 'Product/PriceOfferModal' | ||
} as Meta | ||
} as Meta<PriceOfferModalProps> | ||
|
||
const Template: Story = args => <PriceOfferModal {...args} /> | ||
const Template: Story<PriceOfferModalProps> = args => ( | ||
<PriceOfferModal {...args} /> | ||
) | ||
|
||
export const Default = Template.bind({}) | ||
Default.args = {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export type OfferForm = { | ||
price?: number | ||
tradeMethod: number | ||
tradeLocation: { | ||
city: number | ||
country: number | ||
town: number | ||
} | ||
} | ||
|
||
export type PriceOfferModalProps = { | ||
handleClickOffer(offerForm: OfferForm): void | ||
} |
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 |
---|---|---|
|
@@ -68,7 +68,7 @@ export const TRADE_METHOD: TradeMethod[] = [ | |
}, | ||
{ | ||
code: 8, | ||
name: '상관없음' | ||
name: '직거래/택배거래' | ||
} | ||
] | ||
|
||
|
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