diff --git a/.env b/.env index 8e19167..023304b 100644 --- a/.env +++ b/.env @@ -3,6 +3,7 @@ NODE_ENV="development" NEXT_PUBLIC_SERVER_URL=http://192.168.88.12:32769 NEXT_PUBLIC_PUBLIC_URL=http://192.168.88.12:32769 NEXT_PUBLIC_API_URL=http://192.168.88.12:32769/api + # SECURE_LOCAL_STORAGE_HASH_KEY=f1da2b2c7a4c446934267fea631102ec389b5b99 # NEXT_PUBLIC_API_URL_IMAGE=https://192.168.88.12:49154/Files/ReportImages # NEXT_PUBLIC_API_URL_BackUp=https://192.168.88.12:49154/Files/BackUps diff --git a/components/EmployeesComponent/Users/page.jsx b/components/EmployeesComponent/Users/page.jsx index ac08a04..b99a420 100644 --- a/components/EmployeesComponent/Users/page.jsx +++ b/components/EmployeesComponent/Users/page.jsx @@ -33,7 +33,7 @@ const UsersEmployees = () => {
{e.roleNames.length > 0 diff --git a/components/TaskPage/TasksCard/page.jsx b/components/TaskPage/TasksCard/page.jsx index 531e107..6a24319 100644 --- a/components/TaskPage/TasksCard/page.jsx +++ b/components/TaskPage/TasksCard/page.jsx @@ -12,9 +12,6 @@ const TasksCard = ({ tasksData, permissions }) => { const CTX = useContext(AppContext); const router = useRouter(); - const [showAllTasks, setShowAllTasks] = useState(false); - const [showJust5TasksData, setShowJust5TasksData] = useState(null); - const goToEditTask = (id) => { if (!!HasPermission("ManageTasks", permissions)) { CTX.setGoToEditTask(true); @@ -24,149 +21,38 @@ const TasksCard = ({ tasksData, permissions }) => { } }; - useEffect(() => { - if (tasksData.length > 5) { - setShowJust5TasksData(tasksData.slice(0, 5)); - } else { - setShowJust5TasksData(tasksData); - } - }, [tasksData]); - return ( <> - {showAllTasks ? ( -
- +
-
-
-
- مشاهده بیشتر -
-diff --git a/package.json b/package.json index d6e0f33..21fabff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "brizco", - "version": "0.1.8", + "version": "0.1.9", "private": true, "scripts": { "dev": "next dev", @@ -18,12 +18,14 @@ "core-util-is": "^1.0.3", "framer-motion": "^10.16.1", "jalali-moment": "^3.3.11", + "lodash": "^4.17.21", "next": "13.4.19", "postcss": "8.4.28", "rc-slider": "^10.5.0", "react": "18.2.0", "react-chartjs-2": "^5.2.0", "react-dom": "18.2.0", + "react-infinite-scroll-component": "^6.1.0", "react-modern-calendar-datepicker": "^3.1.6", "react-spring-bottom-sheet": "^3.4.1", "react-toastify": "^9.1.3", diff --git a/plugins/BottomSheet/BottomSheetAddUserToPositionShiftPlan.jsx b/plugins/BottomSheet/BottomSheetAddUserToPositionShiftPlan.jsx index 7f21789..4a3cd89 100644 --- a/plugins/BottomSheet/BottomSheetAddUserToPositionShiftPlan.jsx +++ b/plugins/BottomSheet/BottomSheetAddUserToPositionShiftPlan.jsx @@ -75,6 +75,7 @@ const BottomSheetAddUserToPositionShiftPlan = ({ }, ]); } + CTX.setBottomSheetAddUserToPositionShiftPlanOpen(false); }} >
- {rolesData?.find((b) => b.id == e).persianName} + {rolesData?.find((b) => b.id == e)?.persianName}