diff --git a/modules/StudySession/components/StudySessionCard.tsx b/modules/StudySession/components/StudySessionCard.tsx
index 5c7aaf8..89358b7 100644
--- a/modules/StudySession/components/StudySessionCard.tsx
+++ b/modules/StudySession/components/StudySessionCard.tsx
@@ -15,6 +15,7 @@ import {
} from "@chakra-ui/react";
import Trash from "../../shared/components/Icons/Trash";
+import InfoIcon from "@/modules/shared/components/Icons/Info";
interface StudySessionCardProps {
id: string;
@@ -84,7 +85,12 @@ const StudySessionCard = ({
- {percentage}%
+
+
+ {percentage}%
+
+
+
diff --git a/modules/shared/components/Icons/Info.tsx b/modules/shared/components/Icons/Info.tsx
new file mode 100644
index 0000000..ff53957
--- /dev/null
+++ b/modules/shared/components/Icons/Info.tsx
@@ -0,0 +1,20 @@
+import React from "react";
+
+interface IconProps {
+ width: number;
+ height: number;
+}
+
+export default function InfoIcon({ height, width }: IconProps) {
+ return (
+
+ );
+}
diff --git a/pages/study-sessions/index.tsx b/pages/study-sessions/index.tsx
index 549fa88..bbe22e3 100644
--- a/pages/study-sessions/index.tsx
+++ b/pages/study-sessions/index.tsx
@@ -5,11 +5,11 @@ import { useRouter } from "next/router";
import AddIcon from "@/modules/shared/components/Icons/Add";
import Menu from "@/modules/shared/components/Menu/Menu";
import StudySessionCard from "@/modules/StudySession/components/StudySessionCard";
-import { Center, Container, Flex, Grid, GridItem, Select, Text } from "@chakra-ui/react";
+import { Center, Container, Grid, GridItem, Select, Text } from "@chakra-ui/react";
const StudySessions: NextPage = () => {
const router = useRouter();
- const deleteFunction = (id: string) => {
+ const handleDelete = (id: string) => {
console.log(id);
};
@@ -45,23 +45,31 @@ const StudySessions: NextPage = () => {
desktop: "repeat(3, 1fr)",
}}
gap={{ base: "25", lg: "10" }}
- justifyContent="center"
+ justifyContent="space-between"
>
-
-
-
- Crear nueva sesión
-
-
+
+
+
+
+ Crear nueva sesión
+
+
+
+ {/* ------------MAP con las respectivas props-----------------*/}
{
cardsAmount={30}
collection="Medicina"
percentage={50}
- deleteFunction={deleteFunction}
+ deleteFunction={handleDelete}
/>
+ {/* -----------------MAP-------------------- */}
+ {/* ------------DELETE ------------- */}
{
cardsAmount={30}
collection="Medicina"
percentage={50}
- deleteFunction={deleteFunction}
+ deleteFunction={handleDelete}
/>
@@ -89,7 +99,7 @@ const StudySessions: NextPage = () => {
cardsAmount={30}
collection="Medicina"
percentage={50}
- deleteFunction={deleteFunction}
+ deleteFunction={handleDelete}
/>
@@ -99,9 +109,10 @@ const StudySessions: NextPage = () => {
cardsAmount={30}
collection="Medicina"
percentage={50}
- deleteFunction={deleteFunction}
+ deleteFunction={handleDelete}
/>
+ {/* ------------DELETE ------------- */}
>