From 3279afcc56a7f52aa9bb58822df652bc6ddd7bae Mon Sep 17 00:00:00 2001 From: Telkens Date: Tue, 28 Nov 2023 15:46:44 -0500 Subject: [PATCH] Delete unsave and non-existent imports, and change to Spanish language the personal information form --- src/app/dashboardUser/Maps/page.tsx | 20 ------ src/app/dashboardUser/Settings/page.tsx | 10 +-- src/app/dashboardUser/Tables/page.tsx | 20 ------ src/app/dashboardUser/layout.tsx | 11 +-- src/app/dashboardUser/page.tsx | 14 ++-- .../componetsDashboard/Cards/CardSettings.jsx | 64 ++++++----------- .../componetsDashboard/Headers/HeaderStats.js | 70 ------------------- .../componetsDashboard/Navbars/AdminNavbar.js | 2 +- .../componetsDashboard/Sidebar/Sidebar.js | 51 +++++++------- 9 files changed, 57 insertions(+), 205 deletions(-) delete mode 100644 src/app/dashboardUser/Maps/page.tsx delete mode 100644 src/app/dashboardUser/Tables/page.tsx delete mode 100644 src/components/componetsDashboard/Headers/HeaderStats.js diff --git a/src/app/dashboardUser/Maps/page.tsx b/src/app/dashboardUser/Maps/page.tsx deleted file mode 100644 index eec2852..0000000 --- a/src/app/dashboardUser/Maps/page.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import '~/assets/styles/tailwind.css'; - -// components - -import MapExample from "~/components/componetsDashboard/Maps/MapExample"; - -export default function Maps() { - return ( - <> -
-
-
- -
-
-
- - ); -} diff --git a/src/app/dashboardUser/Settings/page.tsx b/src/app/dashboardUser/Settings/page.tsx index 24aa6c2..1a1c8bc 100644 --- a/src/app/dashboardUser/Settings/page.tsx +++ b/src/app/dashboardUser/Settings/page.tsx @@ -1,22 +1,18 @@ -"use client" +'use client' import React from 'react'; import '~/assets/styles/tailwind.css'; // components -import CardSettings from "~/components/componetsDashboard/Cards/CardSettings" ; -import CardProfile from "~/components/componetsDashboard/Cards/CardProfile"; +import CardSettings from '~/components/componetsDashboard/Cards/CardSettings' ; export default function Settings() { return ( <>
-
+
-
- -
); diff --git a/src/app/dashboardUser/Tables/page.tsx b/src/app/dashboardUser/Tables/page.tsx deleted file mode 100644 index 75e1385..0000000 --- a/src/app/dashboardUser/Tables/page.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; - -// components - -import CardTable from '~/components/componetsDashboard/Cards/CardTable'; - -export default function Tables() { - return ( - <> -
-
- -
-
- -
-
- - ); -} diff --git a/src/app/dashboardUser/layout.tsx b/src/app/dashboardUser/layout.tsx index a4d6e26..a9e89ec 100644 --- a/src/app/dashboardUser/layout.tsx +++ b/src/app/dashboardUser/layout.tsx @@ -4,9 +4,7 @@ import '~/assets/styles/tailwind.css'; // components -import AdminNavbar from '~/components/componetsDashboard/Navbars/AdminNavbar.js'; import Sidebar from '~/components/componetsDashboard//Sidebar/Sidebar.js'; -import HeaderStats from '~/components/componetsDashboard//Headers/HeaderStats.js'; import FooterAdmin from '~/components/componetsDashboard//Footers/FooterAdmin.js'; // views @@ -24,12 +22,9 @@ export default function Admin({ children }: AdminProps) { return ( <> -
- - {/* Header */} - -
- {children} +
+
+ {children} {/* diff --git a/src/app/dashboardUser/page.tsx b/src/app/dashboardUser/page.tsx index e197240..9bd53a6 100644 --- a/src/app/dashboardUser/page.tsx +++ b/src/app/dashboardUser/page.tsx @@ -1,30 +1,24 @@ import React from 'react'; import '~/assets/styles/tailwind.css'; -// components - -import CardLineChart from "~/components/componetsDashboard/Cards/CardLineChart" -import CardBarChart from '~/components/componetsDashboard/Cards/CardBarChart'; -import CardPageVisits from '~/components/componetsDashboard/Cards/CardPageVisits'; -import CardSocialTraffic from '~/components/componetsDashboard/Cards/CardSocialTraffic'; export default function Dashboard() { return ( <>
- +
- +
- +
- +
diff --git a/src/components/componetsDashboard/Cards/CardSettings.jsx b/src/components/componetsDashboard/Cards/CardSettings.jsx index 4f6eef4..21077af 100644 --- a/src/components/componetsDashboard/Cards/CardSettings.jsx +++ b/src/components/componetsDashboard/Cards/CardSettings.jsx @@ -5,22 +5,22 @@ import React from "react"; export default function CardSettings() { return ( <> -
+
-
My account
+
Mi cuenta
- User Information + Información de usuario
@@ -29,12 +29,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - Username + Nombre de usuario
@@ -44,12 +44,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - Email address + Correo electrónico
@@ -59,12 +59,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - First Name + Nombre
@@ -74,12 +74,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - Last Name + Apellido
@@ -88,7 +88,7 @@ export default function CardSettings() {
- Contact Information + Información de contacto
@@ -97,12 +97,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - Address + Dirección
@@ -112,12 +112,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - City + Ciudad
@@ -127,12 +127,12 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - Country + País @@ -142,40 +142,18 @@ export default function CardSettings() { className="block uppercase text-blueGray-600 text-xs font-bold mb-2" htmlFor="grid-password" > - Postal Code + Código postal
- -
- About Me -
-
-
-
- - -
-
-
diff --git a/src/components/componetsDashboard/Headers/HeaderStats.js b/src/components/componetsDashboard/Headers/HeaderStats.js deleted file mode 100644 index aa6a740..0000000 --- a/src/components/componetsDashboard/Headers/HeaderStats.js +++ /dev/null @@ -1,70 +0,0 @@ -import React from 'react'; - -// components - -import CardStats from '~/components/componetsDashboard/Cards/CardStats'; - -export default function HeaderStats() { - return ( - <> - {/* Header */} -
-
-
- {/* Card stats */} -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
- - ); -} diff --git a/src/components/componetsDashboard/Navbars/AdminNavbar.js b/src/components/componetsDashboard/Navbars/AdminNavbar.js index 6ad5c0f..4574b5d 100644 --- a/src/components/componetsDashboard/Navbars/AdminNavbar.js +++ b/src/components/componetsDashboard/Navbars/AdminNavbar.js @@ -7,7 +7,7 @@ export default function Navbar() { return ( <> {/* Navbar */} -