diff --git a/client/src/components/shop-employees/shop-employees-list.component.jsx b/client/src/components/shop-employees/shop-employees-list.component.jsx
index 9984eacee..f60ae6247 100644
--- a/client/src/components/shop-employees/shop-employees-list.component.jsx
+++ b/client/src/components/shop-employees/shop-employees-list.component.jsx
@@ -1,51 +1,98 @@
-import { Button, List } from "antd";
+import { Button, Table } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import CurrencyFormatter from "../../utils/CurrencyFormatter";
export default function ShopEmployeesListComponent({
loading,
employees,
+ selectedEmployee,
setSelectedEmployee,
handleDelete
}) {
const { t } = useTranslation();
+
+ const handleOnRowClick = record => {
+ if (record) {
+ setSelectedEmployee(record);
+ } else setSelectedEmployee({});
+ };
+ const columns = [
+ {
+ title: t("employees.fields.employee_number"),
+ dataIndex: "employee_number",
+ key: "employee_number"
+ },
+ {
+ title: t("employees.fields.first_name"),
+ dataIndex: "first_name",
+ key: "first_name"
+ },
+ {
+ title: t("employees.fields.last_name"),
+ dataIndex: "last_name",
+ key: "last_name"
+ },
+ {
+ title: t("employees.fields.cost_center"),
+ dataIndex: "cost_center",
+ key: "cost_center"
+ },
+ {
+ title: t("employees.fields.base_rate"),
+ dataIndex: "base_rate",
+ key: "base_rate",
+ render: (text, record) => (
+ {record.base_rate}
+ )
+ },
+ {
+ title: t("employees.labels.actions"),
+ dataIndex: "actions",
+ key: "actions",
+ render: (text, record) => (
+
+
+
+ )
+ }
+ ];
return (
-