-
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.
- Loading branch information
1 parent
6f702f1
commit 829fdad
Showing
11 changed files
with
540 additions
and
276 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
import React from 'react' | ||
import Link from "next/link"; | ||
import moment from 'moment' | ||
import { Table } from 'semantic-ui-react' | ||
|
||
const AffiliateTable = ({ affiliateList }) => { | ||
|
||
return ( | ||
<Table | ||
celled selectable | ||
textAlign={'center'}> | ||
<Table.Header> | ||
<Table.Row> | ||
<Table.HeaderCell width={1}> | ||
id | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={2}> | ||
업체명 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={4}> | ||
짤은 설명 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={6}> | ||
설명 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={2}> | ||
생성일 | ||
</Table.HeaderCell> | ||
</Table.Row> | ||
</Table.Header> | ||
<Table.Body> | ||
{ | ||
affiliateList.map((affiliate) => ( | ||
<Link href={`benefit/affiliate/update/${affiliate.id}`} key={affiliate.id}> | ||
<Table.Row> | ||
<Table.Cell>{affiliate.id}</Table.Cell> | ||
<Table.Cell>{affiliate.title}</Table.Cell> | ||
<Table.Cell>{affiliate.content_short}</Table.Cell> | ||
<Table.Cell>{affiliate.content}</Table.Cell> | ||
<Table.Cell> | ||
{ | ||
moment(affiliate.created_at).format('YYYY-MM-DD HH:mm') | ||
} | ||
</Table.Cell> | ||
</Table.Row> | ||
</Link> | ||
)) | ||
} | ||
</Table.Body> | ||
</Table> | ||
) | ||
} | ||
|
||
export default AffiliateTable; |
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,62 @@ | ||
import React from 'react' | ||
import Link from "next/link"; | ||
import moment from 'moment' | ||
import { Table } from 'semantic-ui-react' | ||
|
||
const DiscountTable = ({ discountList }) => { | ||
|
||
return ( | ||
<Table | ||
celled selectable | ||
textAlign={'center'}> | ||
<Table.Header> | ||
<Table.Row> | ||
<Table.HeaderCell width={1}> | ||
id | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={2}> | ||
업체명 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={1}> | ||
지역 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={2}> | ||
영업 시간 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={2}> | ||
가게 번호 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={6}> | ||
할인 내용 | ||
</Table.HeaderCell> | ||
<Table.HeaderCell width={2}> | ||
생성일 | ||
</Table.HeaderCell> | ||
</Table.Row> | ||
</Table.Header> | ||
<Table.Body> | ||
{ | ||
discountList.map((discount) => ( | ||
<Link href={`benefit/discount/update/${discount.id}`} key={discount.id}> | ||
<Table.Row> | ||
<Table.Cell>{discount.id}</Table.Cell> | ||
<Table.Cell>{discount.title}</Table.Cell> | ||
<Table.Cell>{discount.region}</Table.Cell> | ||
<Table.Cell>{discount.open_hour}</Table.Cell> | ||
<Table.Cell>{discount.phone}</Table.Cell> | ||
<Table.Cell>{discount.content}</Table.Cell> | ||
<Table.Cell> | ||
{ | ||
moment(discount.created_at).format('YYYY-MM-DD HH:mm') | ||
} | ||
</Table.Cell> | ||
</Table.Row> | ||
</Link> | ||
)) | ||
} | ||
</Table.Body> | ||
</Table> | ||
) | ||
} | ||
|
||
export default DiscountTable; |
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
Oops, something went wrong.