diff --git a/React/src/App.js b/React/src/App.js index 6d6bddb..d26e73b 100644 --- a/React/src/App.js +++ b/React/src/App.js @@ -16,7 +16,7 @@ function App() { useEffect(() => { // Commented out not to check the localStorage for the user's existence ** Temporary ** // fetch current user from cookies - loadUserFromStorage(store); + // loadUserFromStorage(store); }, []); // Should be removed ** Temporary ** @@ -27,7 +27,7 @@ function App() { }; // ** Temporary ** - // logUserIn(); + logUserIn(); return ( diff --git a/React/src/index.css b/React/src/index.css index 2af7e51..efc2359 100644 --- a/React/src/index.css +++ b/React/src/index.css @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display&display=swap'); +@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display&display=swap"); :root { --blue: #2170b9; @@ -11,11 +11,11 @@ p, .font-inter { - font-family: 'Inter', sans-serif; + font-family: "Inter", sans-serif; } .font-playfair { - font-family: 'Playfair Display', serif; + font-family: "Playfair Display", serif; } .text-black-custom { diff --git a/React/src/pages/components/VehiclesMain.js b/React/src/pages/components/VehiclesMain.js index 76c5595..cafa2a0 100644 --- a/React/src/pages/components/VehiclesMain.js +++ b/React/src/pages/components/VehiclesMain.js @@ -45,49 +45,6 @@ const VehiclesMain = () => { licensePlate: "9956443", type: 1, }, - - { - id: Math.floor(Math.random() * 200) + 1, - color: "White", - model: "Toyota Camry", - licensePlate: "9956443", - type: 1, - }, - { - id: Math.floor(Math.random() * 200) + 1, - color: "White", - model: "Toyota Camry", - licensePlate: "9956443", - type: 1, - }, - { - id: Math.floor(Math.random() * 200) + 1, - color: "White", - model: "Toyota Camry", - licensePlate: "9956443", - type: 1, - }, - { - id: Math.floor(Math.random() * 200) + 1, - color: "White", - model: "Toyota Camry", - licensePlate: "9956443", - type: 1, - }, - { - id: Math.floor(Math.random() * 200) + 1, - color: "White", - model: "Toyota Camry", - licensePlate: "9956443", - type: 1, - }, - { - id: Math.floor(Math.random() * 200) + 1, - color: "White", - model: "Toyota Camry", - licensePlate: "9956443", - type: 1, - }, ]); useEffect(() => { diff --git a/React/src/pages/components/table/ColumnName.js b/React/src/pages/components/table/ColumnName.js index 653a2f3..4164f3c 100644 --- a/React/src/pages/components/table/ColumnName.js +++ b/React/src/pages/components/table/ColumnName.js @@ -3,7 +3,8 @@ import React from "react"; const ColumnName = ({ text }) => ( {text} diff --git a/React/src/pages/components/table/TableData.js b/React/src/pages/components/table/TableData.js index 9456f7e..5bb32c5 100644 --- a/React/src/pages/components/table/TableData.js +++ b/React/src/pages/components/table/TableData.js @@ -1,7 +1,10 @@ import React from "react"; const TableData = ({ text, Component }) => ( - + {text ? text : } );