Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedant Singhania committed Jul 3, 2024
1 parent 2979986 commit d4c4ed4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tunestats/app/components/display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Display(props:any) {
<div className="">
<table className="table">
<tbody>
{data.map((t) => (
{data.map((t:any) => (
<tr key={t.uri} onClick={() => redirClick(t.uri)} className="hover:text-primary">
<td style={{ width: "100px" }}>
<img
Expand Down
8 changes: 4 additions & 4 deletions tunestats/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Page() {
const [tracks, setTracks] = useState({ all: [], six: [], last: [] }); // [track1, track2, track3, ...
const [artists, setArtists] = useState({ all: [], six: [], last: [] }); // [track1, track2, track3, ...
const [recents, setRecents ] = useState([]); // [track1, track2, track3, ...
const ranges = { all: "All Time", six: "Last 6 Months", last: "Last Month" }
const ranges:any = { all: "All Time", six: "Last 6 Months", last: "Last Month" }

function getHashParams() {
var hashParams = {};
Expand Down Expand Up @@ -52,7 +52,7 @@ export default function Page() {
}

const getTracks = (data:any, type:any, token:string) => {
let trackInfo = tracks
let trackInfo:any = tracks
axios.get("https://api.spotify.com/v1/me/top/tracks", {
headers: {
Authorization: `Bearer ${token}`,
Expand All @@ -77,7 +77,7 @@ export default function Page() {
}

const getArtists = (data:any, type:any, token:string) => {
let artistInfo = artists
let artistInfo:any = artists
axios.get("https://api.spotify.com/v1/me/top/artists", {
headers: {
Authorization: `Bearer ${token}`,
Expand All @@ -101,7 +101,7 @@ export default function Page() {
.catch((error) => console.log(error));
}

const getRecents = (token) => {
const getRecents = (token:any) => {
let recentInfo = recents
axios.get("https://api.spotify.com/v1/me/player/recently-played", {
headers: {
Expand Down

0 comments on commit d4c4ed4

Please sign in to comment.