comments error rectified

parent cf757f09
...@@ -52,21 +52,21 @@ function LeftSidebar() { ...@@ -52,21 +52,21 @@ function LeftSidebar() {
return ( return (
<div className=" w-[33%] flex flex-col px-[5px]"> <div className=" w-[33%] flex flex-col px-[5px]">
<div className="flex mt-3 items-center justify-between"> <div className=" flex mt-3 items-center justify-between">
<p className="text-xl text-blue-400 font-semibold pl-4"> <p className="text-xl text-blue-400 font-semibold pl-4">
Reportees Reportees
</p> </p>
<input <input
placeholder="Search" placeholder="Search"
type="text" type="text"
className="p-2 mi-2 border rounded w-[160px]" className="p-2 border rounded w-[160px] placeholder:text-[14px]"
value={inputValue} value={inputValue}
onChange={handleChange} onChange={handleChange}
/> />
</div> </div>
{ {
(loading) ? <Loading /> : (loading) ? <Loading /> :
<div className="p-2 bg-[#E9EDEE] mt-4 max-h-[80vh] overflow-auto"> <div className="p-2 bg-[#E9EDEE] mt-4 max-h-[70vh] overflow-auto">
{reportees?.map(({ empName, score, empId }) => ( {reportees?.map(({ empName, score, empId }) => (
<button onClick={() => dispatch(setViewReportee(empId))} <button onClick={() => dispatch(setViewReportee(empId))}
// to={`/viewreportee`} // to={`/viewreportee`}
......
...@@ -55,7 +55,7 @@ export default function MyModal({ visible, onClose, type, handleAddActivity }) { ...@@ -55,7 +55,7 @@ export default function MyModal({ visible, onClose, type, handleAddActivity }) {
} }
const handleComments = (e) => { const handleComments = (e) => {
setActivityData({ ...activityData, comments: e.target.value }) setActivityData({ ...activityData, comments:e.target.value.trim() })
} }
const handleSubmit = (e) => { const handleSubmit = (e) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment