Skip to content

Commit

Permalink
CE-323 (#226)
Browse files Browse the repository at this point in the history
Co-authored-by: afwilcox <[email protected]>
  • Loading branch information
cnesmithsalus and afwilcox authored Dec 14, 2023
1 parent a032b82 commit 8bd4fd1
Showing 1 changed file with 4 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { FC, useState } from "react";
import { FC } from "react";
import {
BsPersonPlus,
BsSend,
BsSendFill,
BsArrowRepeat,
BsFillPersonPlusFill,
} from "react-icons/bs";
import { useAppDispatch } from "../../../../hooks/hooks";
import { openModal } from "../../../../store/reducers/app";
Expand All @@ -27,8 +25,6 @@ export const ComplaintActionItems: FC<Props> = ({
zone,
agency_code,
}) => {
const [isReferHovered, setIsReferHovered] = useState(false);
const [isAssignHovered, setIsAssignHovered] = useState(false);

const dispatch = useAppDispatch();

Expand Down Expand Up @@ -71,29 +67,21 @@ export const ComplaintActionItems: FC<Props> = ({
<OverlayTrigger
placement="top"
key={`tt-assign-${complaint_identifier}`}
delay={{ show: 250, hide: 0 }}
overlay={
<Tooltip id={`tt-assign-${complaint_identifier}`} className="comp-tooltip">
Assign
</Tooltip>
}
>
<span className="tt-assign-span"
onMouseEnter={() => setIsAssignHovered(true)}
onMouseLeave={() => setIsAssignHovered(false)}
onClick={openAsignOfficerModal}
onKeyUp={openAsignOfficerModal}
>
{isAssignHovered ? (
<BsFillPersonPlusFill className="comp-table-row-hover-icons comp-table-icon" />
) : (
<BsPersonPlus className="comp-table-row-hover-icons comp-table-icon" />
)}
<BsPersonPlus className="comp-table-row-hover-icons comp-table-icon comp-table-icon-weighted" />
</span>
</OverlayTrigger>
<OverlayTrigger
placement="top"
delay={{ show: 250, hide: 0 }}
key={`tt-update-${complaint_identifier}`}
overlay={

Expand All @@ -111,27 +99,15 @@ export const ComplaintActionItems: FC<Props> = ({
</OverlayTrigger>
<OverlayTrigger
placement="top"
delay={{ show: 250, hide: 0 }}
key={`tt-refer-${complaint_identifier}`}
overlay={
isReferHovered ? (
<Tooltip id="tt-refer" className="comp-tooltip">
Refer
</Tooltip>
) : (
<span></span>
)
}
>
<span
onMouseEnter={() => setIsReferHovered(true)}
onMouseLeave={() => setIsReferHovered(false)}
>
{isReferHovered ? (
<BsSendFill className="comp-table-row-hover-icons comp-table-icon" />
) : (
<BsSend className="comp-table-row-hover-icons comp-table-icon" />
)}
<span>
<BsSend className="comp-table-row-hover-icons comp-table-icon comp-table-icon-weighted" />
</span>
</OverlayTrigger>
</>
Expand Down

0 comments on commit 8bd4fd1

Please sign in to comment.