-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : add organisms/discountInformation/index.js (#85)
가게 세부 정보 할인 정보 강조
- Loading branch information
1 parent
c1b1660
commit 4f85022
Showing
1 changed file
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Div, ContentDiv } from './style'; | ||
|
||
import Image from "@atoms/image" | ||
import Text from "@atoms/text"; | ||
import ImageText from '@molecules/imageText'; | ||
|
||
const DiscountInformation = ({discountData}) => { | ||
|
||
console.log(discountData) | ||
const daysOfWeek = [["일요일", "SUN"], ["월요일", "MON"], ["화요일", "TUE"], ["수요일", "WED"], ["목요일", "THU"], ["금요일", "FRI"], ["토요일", "SAT"]]; | ||
|
||
|
||
return ( | ||
<> | ||
<Text text="어메이징한 할인 이벤트" className="discountInfoTitle" /> | ||
<Div> | ||
{discountData && discountData.map((item, index) => { | ||
return ( | ||
<ContentDiv key={index}> | ||
<Text text={item.discountDay} className="discountInfoDay" /> | ||
<Text text={item.people + "명"} className="discountInfoPeople" /> | ||
<Text text={item.discountRatio + "%"} className="discountInfoRatio" /> | ||
</ContentDiv> | ||
) | ||
})} | ||
</Div> | ||
</> | ||
); | ||
}; | ||
|
||
export default DiscountInformation; |