-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Vedant Singhania
committed
Jul 9, 2024
1 parent
de84c5b
commit a65d8af
Showing
12 changed files
with
376 additions
and
202 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": ["next/core-web-vitals", "prettier"] | ||
} |
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 @@ | ||
{} |
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,36 @@ | ||
import Image from "next/image"; | ||
|
||
export default function Friends(props:any) { | ||
return ( | ||
<div className="overflow-x-auto w-full"> | ||
<table className="table"> | ||
<tbody> | ||
{props.data.map((user: any, index: any) => ( | ||
<tr | ||
key={index} | ||
className="hover:text-secondary cursor-pointer border-0" | ||
//onClick={() => redirect(track.url)} | ||
> | ||
<td style={{ width: "0" }} className="px-0 py-2"> | ||
<div className="avatar"> | ||
<div className="w-12"> | ||
<Image unoptimized | ||
alt="album cover" | ||
src={user.image[3]["#text"] ? user.image[3]["#text"] : "/images/image.png"} | ||
width={64} | ||
height={64} | ||
/> | ||
</div> | ||
</div> | ||
</td> | ||
<td> | ||
<p className="font-bold text-md">{user.name}</p> | ||
<p>{user.realname}</p> | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
</div> | ||
) | ||
} |
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,14 @@ | ||
import { logout } from "../api/lib/lastfm/auth"; | ||
|
||
export default function Settings() { | ||
return ( | ||
<div> | ||
<button | ||
className="btn btn-block btn-error" | ||
onClick={() => logout(process.env.NEXT_PUBLIC_CALLBACK_URL || "")} | ||
> | ||
Log Out | ||
</button> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.