diff --git a/src/App.js b/src/App.js index f946e28..e3032a4 100644 --- a/src/App.js +++ b/src/App.js @@ -90,17 +90,17 @@ function App() { {/* */} {/* */} {/* */} - + {/* */} {/* */} {/* */} - {/* +
-
*/} + ); diff --git a/src/components/Header/desgin1/HeaderDesign1.js b/src/components/Header/desgin1/HeaderDesign1.js index 44404a4..8f1a1c7 100644 --- a/src/components/Header/desgin1/HeaderDesign1.js +++ b/src/components/Header/desgin1/HeaderDesign1.js @@ -51,7 +51,9 @@ const HeaderDesign1 = ({ username, userJob }) => {
- +
+ +
{ > نام و نام خانوادگی:

- + > + {row.name} +
{/* 2 */}
@@ -47,16 +49,18 @@ const EditRow = ({ row, columns, sentForms }) => { > تاریخ سفارش:

- + > + {row.order_date} +
{/* 3 */}
@@ -66,16 +70,18 @@ const EditRow = ({ row, columns, sentForms }) => { > مبلغ سفارش:

- + > + {row.order_price} +
{/* 4 */}
@@ -85,16 +91,18 @@ const EditRow = ({ row, columns, sentForms }) => { > شماره سفارش:

- + > + {row.order_number} +
{/* 5 */}
@@ -104,16 +112,18 @@ const EditRow = ({ row, columns, sentForms }) => { > شغل کاربر:

- + > + {row.user_job} +
{/* 6 */}
@@ -123,16 +133,18 @@ const EditRow = ({ row, columns, sentForms }) => { > وضعیت سفارش:

- + > + {row.order_status} +
{/* 7 */}
@@ -140,18 +152,20 @@ const EditRow = ({ row, columns, sentForms }) => { className="text-xs text-blue-400 mb-2" style={{ borderColor: "#65A9FF" }} > - وضعیت سفارش: + سطح اهمیت:

- + > + {row.order_level} +
{/* 8 */}
@@ -161,16 +175,18 @@ const EditRow = ({ row, columns, sentForms }) => { > محل تولد:

- + > + {row.birth_place} +
{/* 9 */}
@@ -180,16 +196,18 @@ const EditRow = ({ row, columns, sentForms }) => { > تلفن محل کار:

- + > + {row.office_phone} +
{/* 10 */}
@@ -199,16 +217,18 @@ const EditRow = ({ row, columns, sentForms }) => { > تحصیلات:

- + > + {row.education} +
{/* 11 */}
@@ -218,16 +238,18 @@ const EditRow = ({ row, columns, sentForms }) => { > تاریخ تولد:

- + > + {row.birth_day} +
{/* 12 */}
@@ -237,16 +259,18 @@ const EditRow = ({ row, columns, sentForms }) => { > شغل:

- + > + {row.job} +
{/* 13 */}
@@ -256,16 +280,18 @@ const EditRow = ({ row, columns, sentForms }) => { > دانشگاه:

- + > + {row.uni} +
{/* 14 */}
@@ -275,16 +301,18 @@ const EditRow = ({ row, columns, sentForms }) => { > رشته تحصیلی:

- + > + {row.field_study} +
{/* 15 */}
@@ -294,16 +322,18 @@ const EditRow = ({ row, columns, sentForms }) => { > اخلاق:

- + > + {row.behaviour} +
{/* 16 */}
@@ -313,23 +343,18 @@ const EditRow = ({ row, columns, sentForms }) => { > نشانی:

- {/* - {row.address}{" "} - */} - + > + {row.address} +
{/* title bottom */} @@ -347,18 +372,18 @@ rder p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 {/* right */}
{/* map */} -
+
لوکیشن مد نظر:
{/* formInput */}
- + توضیحات:
@@ -385,7 +410,7 @@ rder p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 {/* previous */}
{/* title */} - + توضیحات قبلی: {/* content */} @@ -431,7 +456,14 @@ rder p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200
{/* left */} -
dfsfdsdfs
+
+ +
); diff --git a/src/components/ReactTable4/SelectColumnFilter.js b/src/components/ReactTable4/SelectColumnFilter.js index 296b659..0e4fae7 100644 --- a/src/components/ReactTable4/SelectColumnFilter.js +++ b/src/components/ReactTable4/SelectColumnFilter.js @@ -1,7 +1,8 @@ import React from "react"; +// {columns[5].Cell({ value: row.order_status })} export const SelectColumnFilter = ({ - column: { filterValue, setFilter, preFilteredRows, id, render }, + column: { filterValue, setFilter, preFilteredRows, id, render, columns }, }) => { const options = React.useMemo(() => { const options = new Set(); diff --git a/src/components/Switch/index.js b/src/components/Switch/index.js index 9e9d48e..22f53af 100644 --- a/src/components/Switch/index.js +++ b/src/components/Switch/index.js @@ -3,10 +3,13 @@ import "./index.scss"; const Switch = () => { return ( -
- - -
+ ); }; diff --git a/src/components/Switch/index.scss b/src/components/Switch/index.scss index 9f74f26..d84c858 100644 --- a/src/components/Switch/index.scss +++ b/src/components/Switch/index.scss @@ -1,52 +1,9 @@ -// *, *:after, *:before { -// // box-sizing: border-box; -// } - -// body { -// min-height: 100vh; -// display: flex; -// align-items: center; -// justify-content: center; -// } - -.switch { - position: relative; - input[type="checkbox"] { - visibility: hidden; - position : absolute; - &:checked + label { - transform: rotate(0deg); - background-color: #000; - &:before { - transform: translateX(35.5px); - background-color: #fff; - } - } - } - - label { - display: flex; - width: 70px; - height: 34px; - border: 3px solid; - border-radius: 99em; - position: relative; - transition: transform 0.3s ease-in-out; - transform-origin: 50% 50%; - cursor: pointer; +input:checked ~ .dot { + transform: translateX(100%); + background-color: #65a9ff; +} - &:before { - transition: transform 0.3s ease; - transition-delay: 0s; - content: ""; - display: block; - position: absolute; - width: 24px; - height: 24px; - background-color: #000; - border-radius: 50%; - top: 2px; - left: 3px; - } - } +input:checked ~ .dot { + transform: translateX(100%); + background-color: #65a9ff; } diff --git a/src/components/testtttt/index.scss b/src/components/testtttt/index.scss new file mode 100644 index 0000000..e69de29