diff --git a/src/components/ReactTable4/BasicTable.js b/src/components/ReactTable4/BasicTable.js
index 9ea7140..b9f46e1 100644
--- a/src/components/ReactTable4/BasicTable.js
+++ b/src/components/ReactTable4/BasicTable.js
@@ -19,6 +19,10 @@ import { GlobalFilter } from "./GlobalFilter";
import { Checkbox } from "./Checkbox";
import MOCK_DATA from "./MOCK_DATA.json";
+import dobleLeftArrow from "./double-left-arrow.svg";
+import leftArrow from "./left-arrow.svg";
+import rightArrow from "./right-arrow.svg";
+
// This is a custom filter UI for selecting
// a unique option from a list
export function SelectColumnFilter({
@@ -146,7 +150,8 @@ const BasicTable = () => {
// const firstPageRows = rows.slice(0, 10);
return (
<>
-
+ {/* filter */}
+ {/*
{headerGroups.map((headerGroup) =>
headerGroup.headers.map((column) =>
column.Filter ? (
@@ -156,71 +161,7 @@ const BasicTable = () => {
) : null
)
)}
-
-
- {/* search box */}
- {/*
*/}
- {/* pagination */}
-
- {/* go to page */}
-
- {
- const pageNumber = e.target.value
- ? Number(e.target.value) - 1
- : 0;
- gotoPage(pageNumber);
- }}
- style={{ width: "50px" }}
- />
-
- {" "}
- برو به صفحه{" "}
-
-
- {/* */}
-
- {/* arrows */}
-
-
-
-
-
-
+
*/}
{/* */}
{/* toggle columns */}
{/*
@@ -238,6 +179,75 @@ const BasicTable = () => {
*/}
{/* Change Column Order */}
{/* */}
+
+ {/* search box */}
+
+ {/*
*/}
+ {/* pagination */}
+
+ {/* go to page */}
+
+ {
+ const pageNumber = e.target.value
+ ? Number(e.target.value) - 1
+ : 0;
+ gotoPage(pageNumber);
+ }}
+ style={{ width: "50px" }}
+ />
+
+ {" "}
+ برو به صفحه{" "}
+
+
+ {/* */}
+
+ {/* arrows */}
+
+
+
+
+ {/* dobleLeftArrow
+leftArrow
+import rightArrow from "./right-arrow.svg"; */}
+
+
+
{
-
+ {/*
صفحه{" "}
{pageIndex + 1} از {pageOptions.length}
{""}
+ */}
+
+ صفحه{" "}
+
+ {
+ const pageNumber = e.target.value
+ ? Number(e.target.value) - 1
+ : 0;
+ gotoPage(pageNumber);
+ }}
+ style={{ width: "50px" }}
+ />{" "}
+ از {pageOptions.length}
+
+ {""}
-
+ {/* */}
);
diff --git a/src/components/ReactTable4/left-arrow.svg b/src/components/ReactTable4/left-arrow.svg
new file mode 100644
index 0000000..3212c91
--- /dev/null
+++ b/src/components/ReactTable4/left-arrow.svg
@@ -0,0 +1,8 @@
+
diff --git a/src/components/ReactTable4/right-arrow.svg b/src/components/ReactTable4/right-arrow.svg
new file mode 100644
index 0000000..1cf09b1
--- /dev/null
+++ b/src/components/ReactTable4/right-arrow.svg
@@ -0,0 +1,6 @@
+
diff --git a/src/components/Sidebar/SidebarDesign2/index.js b/src/components/Sidebar/SidebarDesign2/index.js
index 58b5986..2451244 100644
--- a/src/components/Sidebar/SidebarDesign2/index.js
+++ b/src/components/Sidebar/SidebarDesign2/index.js
@@ -69,7 +69,11 @@ const SidebarMenu = ({ items, buttons, username, userJob }) => {
className={`flex flex-row flex-1 items-center cursor-pointer hover:bg-blue-100 rounded-md p-2 transition duration-300
${activeDropdown === menuItem ? "bg-blue-100" : ""}
`}
- onClick={() => setActiveDropdown(activeDropdown === menuItem ? null : menuItem)}
+ onClick={() =>
+ setActiveDropdown(
+ activeDropdown === menuItem ? null : menuItem
+ )
+ }
>
@@ -117,7 +121,7 @@ const SidebarMenu = ({ items, buttons, username, userJob }) => {
-
setActiveDropdown(menuSubItem)}
>
@@ -137,8 +141,8 @@ const SidebarMenu = ({ items, buttons, username, userJob }) => {
))}
))}
- { Number(i) !== items.length -1 && (
-
+ {Number(i) !== items.length - 1 && (
+
)}
))}