From 4d2657859cb850c3e1acd97efda962474246dcef Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 26 Oct 2023 16:48:30 +0300 Subject: [PATCH] restored nextjs 12.0.1 --- package.json | 2 +- pages/public/facilities/index.js | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c59a0e27..9a9bf02c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "highcharts-react-official": "^3.2.0", "leaflet-geosearch": "^3.8.0", "moment": "^2.29.4", - "next": "13.4.20-canary.13", + "next": "12.1.0", "next-cookies": "^2.0.3", "nprogress": "^0.2.0", "react": "^18.2.0", diff --git a/pages/public/facilities/index.js b/pages/public/facilities/index.js index f15023a8..81b97eb6 100644 --- a/pages/public/facilities/index.js +++ b/pages/public/facilities/index.js @@ -470,10 +470,24 @@ const Home = (props) => { className="bg-gray-100 border-1 border-black text-black flex items-center justify-center px-4 py-1 " onClick={()=>{ setDrillDown({}) - name.current?.value ='',code.current?.value='', allfacilities.current?.value ='', - county.current?.select?.clearValue(),subcounty.current?.select.clearValue(),ward.current?.select.clearValue(),constituency.current?.select.clearValue(),facilityservice.current?.select.clearValue(), - facilitytype.current?.select.clearValue(),operationstatus.current?.select.clearValue(),facilityowner.current?.select.clearValue(),ownertype.current?.select.clearValue(),servicecategory.current?.select.clearValue(), - beds.current?.checked=false, cots.current?.checked=false, available_holiday.current?.checked=false, available_24hrs.current?.checked=false,available_weekends.current?.checked=false + name.current?.value =''; + code.current?.value=''; + allfacilities.current?.value =''; + county.current?.select?.clearValue(); + subcounty.current?.select.clearValue(); + ward.current?.select.clearValue(); + constituency.current?.select.clearValue(); + facilityservice.current?.select.clearValue(); + facilitytype.current?.select.clearValue(); + operationstatus.current?.select.clearValue(); + facilityowner.current?.select.clearValue(); + ownertype.current?.select.clearValue(); + servicecategory.current?.select.clearValue(); + beds.current?.checked=false; + cots.current?.checked=false; + available_holiday.current?.checked=false; + available_24hrs.current?.checked=false; + available_weekends.current?.checked=false; }} >Reset