Skip to content

Commit

Permalink
change done
Browse files Browse the repository at this point in the history
  • Loading branch information
SalveSayali-23 committed Feb 2, 2024
1 parent 72ebc01 commit 3a365d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qtify/src/components/Section/Section.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react/prop-types */
// eslint-disable-next-line no-unused-vars
import React, { useState, useEffect, useCallback } from "react";
import React, { useState, useEffect } from "react";
import styles from "./Section.module.css";
import { CircularProgress } from "@mui/material";
import Card from "../Card/Card";
Expand All @@ -22,7 +22,7 @@ const Section = ({ data, title, type }) => {
// this will give new value(0,1,2,3,4) based on the tab change

setValue(newValue);

//generateSongsData(newValue)
console.log(newValue);
};

Expand All @@ -42,9 +42,11 @@ const Section = ({ data, title, type }) => {
}
const res = data.filter((item) => item.genre.key === key);
setFilterData(res);
console.log(res);
};
const filteredData = type === "songs" ? filterData : data;
console.log(filteredData);
// console.log(filteredData);
console.log(filterData);

useEffect(() => {
generateSongsData(value);
Expand Down

0 comments on commit 3a365d6

Please sign in to comment.