Skip to content

Commit

Permalink
feat: next:topページの表にリンク生成 #149
Browse files Browse the repository at this point in the history
  • Loading branch information
shari-sushi committed Mar 2, 2024
1 parent 2832062 commit c167e8e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion t0016Next/myapp/src/components/table/Vtuber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,19 @@ export function VtuberTable({ posts }: VtuberTableProps) {


const columns: Column<ReceivedVtuber>[] = [
{ Header: 'VTuber', accessor: 'VtuberName' },
{
Header: 'VTuber(click it)', accessor: 'VtuberName',
Cell: ({ row }: { row: { original: ReceivedVtuber } }) => {
return (
<span className="relative">
<Link href={`/vtuber/${row.original.VtuberKana}`} className="flex">
<img src="/content/external_link.svg" className='w-5 mr-1' />
{row.original.VtuberName}
</Link>
</span>
)
},
},
{ Header: 'kana', accessor: 'VtuberKana' },
{
Header: '紹介動画', accessor: 'IntroMovieUrl',
Expand Down

0 comments on commit c167e8e

Please sign in to comment.