Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
fre-ben committed Feb 13, 2021
1 parent 34fa665 commit 136022d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/cat/cat.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.catImg {
}
5 changes: 4 additions & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ClassificationType } from "typescript";

//TheCatAPI
// Schema von CatAPI
export type Cat = {
breeds: string[];
Expand Down Expand Up @@ -30,6 +31,8 @@ export async function getRandomCat() {
);
const result = (await response.json()) as Cat[];
const test = convertToImage(result[0]);
console.log(result);
console.log(result[0]);
return test;
}

// News API

0 comments on commit 136022d

Please sign in to comment.