Fixes table cells' paddings

This commit is contained in:
Vazhin Tayeb 2021-01-15 11:08:08 +03:00 committed by Muhammad Azeez
parent d1c906ebfa
commit 6ea2fe6e15
5 changed files with 11 additions and 50 deletions

View File

@ -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 (
<Provider store={store}>

View File

@ -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 {

View File

@ -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(() => {

View File

@ -3,7 +3,8 @@ import React from "react";
const ColumnName = ({ text }) => (
<th
scope="col"
className="px-16 py-4 whitespace-nowrap text-2xl font-inter text-black-custom font-semibold"
className="whitespace-nowrap text-2xl font-inter text-black-custom font-semibold text-center"
style={{ padding: "10px 40px 10px 40px" }}
>
{text}
</th>

View File

@ -1,7 +1,10 @@
import React from "react";
const TableData = ({ text, Component }) => (
<td className="px-16 py-4 whitespace-nowrap text-2xl font-inter text-black-custom font-normal">
<td
className="whitespace-nowrap text-2xl font-inter text-black-custom font-normal text-center"
style={{ padding: "10px 40px 10px 40px" }}
>
{text ? text : <Component />}
</td>
);