-
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
da-in
committed
Nov 25, 2023
1 parent
0e5407c
commit 20bb09d
Showing
8 changed files
with
112 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
import {Link} from "react-router-dom"; | ||
import {useNavigate} from "react-router-dom"; | ||
import thumbnail from "../assets/thumbnail.png"; | ||
|
||
interface Props { | ||
title: string | ||
date: string | ||
} | ||
|
||
export interface BandItemType{ | ||
title: string | ||
name: string | ||
created_at: string | ||
} | ||
|
||
const BandItem = ({ title }:Props) => { | ||
|
||
const BandItem = ({ title, date }:Props) => { | ||
const navigate = useNavigate() | ||
const onClick = () => { | ||
navigate(`/view/${title}`) | ||
} | ||
return ( | ||
<Link to="/view" > | ||
<div className="rounded-xl w-[12rem] overflow-hidden"> | ||
<button onClick={onClick} > | ||
<div className="rounded-xl w-[12rem] overflow-hidden text-left"> | ||
<img src={thumbnail} alt="thumbnail"/> | ||
<div>{title}</div> | ||
<span>FURIPOTER</span> | ||
<div className="font-bold truncate">{title}</div> | ||
<span className="text-[14px]">{date}</span> | ||
</div> | ||
</Link> | ||
</button> | ||
) | ||
} | ||
export default BandItem |
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
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