diff --git a/src/Components/Notes/Notes.tsx b/src/Components/Notes/Notes.tsx
index f8e0eda..cee1589 100644
--- a/src/Components/Notes/Notes.tsx
+++ b/src/Components/Notes/Notes.tsx
@@ -6,7 +6,7 @@ import { Button } from "@mui/material";
import { useQuery } from "react-query";
import { GetNotes } from "../Api/Api";
import { useSelector } from "react-redux";
-import { LoginState } from "../../Interfaces/Interfaces";
+import { LoginState, NoteProps } from "../../Interfaces/Interfaces";
export default function Notes() {
const navigate = useNavigate();
@@ -55,29 +55,18 @@ export default function Notes() {
return (
<>
- {notes.map(
- (
- note: {
- owner: string;
- title: string;
- content: string;
- id: number;
- date_created: Date;
- },
- index: number
- ) => {
- return (
-
- );
- }
- )}
+ {notes.map((note: NoteProps, index: number) => {
+ return (
+
+ );
+ })}