diff --git a/frontend/src/views/Dashboard/CourseCard/index.jsx b/frontend/src/views/Dashboard/CourseCard/index.jsx index a916c51..d4aa0b5 100644 --- a/frontend/src/views/Dashboard/CourseCard/index.jsx +++ b/frontend/src/views/Dashboard/CourseCard/index.jsx @@ -1,6 +1,4 @@ import React from 'react'; -//styles -import Styles from './CourseCard.module.css'; import { useNavigate } from 'react-router-dom'; //icons import { TbAlertTriangle } from 'react-icons/tb'; @@ -9,50 +7,72 @@ const CourseCard = ({ data, text, url, text2, url2, subscribed = true }) => { const navigate = useNavigate(); return ( <> -
-

{data.title}

-

{data.title_second}

-

{data.title_extra}

-
-

{data.type}

-

{data.duration}

-

Nivel {data.level}

+
+

+ {data.title} +

+

+ {data.title_second} +

+

+ {data.title_extra} +

+
+

+ {data.type} +

+

+ {data.duration} +

+

+ Nivel {data.level} +

-
-

+

+

Dominarás: {data.technologies}

-

+

Precio: {data.price}

-

+

Inicia: Al llegar a {data.minimum} aplicaciones daremos fecha.

-
+
{text2 && url2 && ( )} {text && url && ( )}
-
- {data.extra_alert && } -

{`${ +

+ {data.extra_alert && ( +
diff --git a/frontend/src/views/Dashboard/MyCourses/index.jsx b/frontend/src/views/Dashboard/MyCourses/index.jsx index f32c4af..583d638 100644 --- a/frontend/src/views/Dashboard/MyCourses/index.jsx +++ b/frontend/src/views/Dashboard/MyCourses/index.jsx @@ -1,8 +1,6 @@ import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { useDispatch } from 'react-redux'; -//styles -import Styles from './../Grid.module.css'; //actions import { logOut } from './../../../redux/actions/auth'; //components @@ -25,10 +23,10 @@ const MyCourses = () => { getData(); }, []); return ( -
+
{listCourses.map((course) => { return ( -
+