Skip to content

Commit

Permalink
Fixed djangoindia#244 -- Created apiDataCard.ts, configured DataCard …
Browse files Browse the repository at this point in the history
…count numbers for fetching actual data - Subscribers explicitly set, Contributors & Stars set by API
  • Loading branch information
ehemp committed Dec 9, 2024
1 parent c922933 commit ad239f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions frontend/src/components/DataCard/DataCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ interface StatCardProps {
icon: React.ReactNode;
}




export const DataCard = () => {
const [dataCount, setDataCount] = useState({stargazers_count: Number, subscribers_count: Number, contributors_count: Number});
const [loading, setLoading] = useState(true);
Expand Down
5 changes: 1 addition & 4 deletions frontend/src/components/DataCard/apiDataCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ export const requestOptions = {
export const url = {
stargazers_count: "https://api.github.com/repos/djangoindia/djangoindia.org",
contributors: "https://api.github.com/repos/djangoindia/djangoindia.org/contributors",
};



};

0 comments on commit ad239f7

Please sign in to comment.