@@ -16,8 +16,8 @@ import { Event, deleteEvent } from "../../../slices/eventSlice";
1616import { Tooltip } from "../../shared/Tooltip" ;
1717import { openModal } from "../../../slices/eventDetailsSlice" ;
1818import { ActionCellDelete } from "../../shared/ActionCellDelete" ;
19- import { IconButton } from "../../shared/IconButton" ;
2019import { Modal , ModalHandle } from "../../shared/modals/Modal" ;
20+ import ButtonLikeAnchor from "../../shared/ButtonLikeAnchor" ;
2121
2222/**
2323 * This component renders the action cells of events in the table view
@@ -91,18 +91,18 @@ const EventActionCell = ({
9191 ) }
9292
9393 { /* Open event details */ }
94- < IconButton
95- callback = { onClickEventDetails }
96- iconClassname = { "more" }
94+ < ButtonLikeAnchor
95+ onClick = { onClickEventDetails }
96+ className = { "more" }
9797 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_VIEW" }
9898 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.DETAILS" }
9999 />
100100
101101 { /* If event belongs to a series then the corresponding series details can be opened */ }
102102 { ! ! row . series && (
103- < IconButton
104- callback = { onClickSeriesDetails }
105- iconClassname = { "more-series" }
103+ < ButtonLikeAnchor
104+ onClick = { onClickSeriesDetails }
105+ className = { "more-series" }
106106 editAccessRole = { "ROLE_UI_SERIES_DETAILS_VIEW" }
107107 tooltipText = { "EVENTS.SERIES.TABLE.TOOLTIP.DETAILS" }
108108 />
@@ -139,45 +139,45 @@ const EventActionCell = ({
139139
140140 { /* If the event has comments and no open comments then the comment tab of event details can be opened directly */ }
141141 { row . has_comments && ! row . has_open_comments && (
142- < IconButton
143- callback = { ( ) => onClickComments ( ) }
144- iconClassname = { "comments" }
142+ < ButtonLikeAnchor
143+ onClick = { ( ) => onClickComments ( ) }
144+ className = { "comments" }
145145 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
146146 />
147147 ) }
148148
149149 { /* If the event has comments and open comments then the comment tab of event details can be opened directly */ }
150150 { row . has_comments && row . has_open_comments && (
151- < IconButton
152- callback = { ( ) => onClickComments ( ) }
153- iconClassname = { "comments-open" }
151+ < ButtonLikeAnchor
152+ onClick = { ( ) => onClickComments ( ) }
153+ className = { "comments-open" }
154154 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
155155 />
156156 ) }
157157
158158 { /*If the event is in in a paused workflow state then a warning icon is shown and workflow tab of event
159159 details can be opened directly */ }
160160 { row . workflow_state === "PAUSED" &&
161- < IconButton
162- callback = { ( ) => onClickWorkflow ( ) }
163- iconClassname = { "fa fa-warning" }
161+ < ButtonLikeAnchor
162+ onClick = { ( ) => onClickWorkflow ( ) }
163+ className = { "fa fa-warning" }
164164 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_WORKFLOWS_EDIT" }
165165 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW" }
166166 />
167167 }
168168
169169 { /* Open assets tab of event details directly*/ }
170- < IconButton
171- callback = { ( ) => onClickAssets ( ) }
172- iconClassname = { "fa fa-folder-open" }
170+ < ButtonLikeAnchor
171+ onClick = { ( ) => onClickAssets ( ) }
172+ className = { "fa fa-folder-open" }
173173 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_ASSETS_VIEW" }
174174 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS" }
175175 />
176176
177177 { /* Open dialog for embedded code*/ }
178- < IconButton
179- callback = { ( ) => showEmbeddingCodeModal ( ) }
180- iconClassname = { "fa fa-link" }
178+ < ButtonLikeAnchor
179+ onClick = { ( ) => showEmbeddingCodeModal ( ) }
180+ className = { "fa fa-link" }
181181 editAccessRole = { "ROLE_UI_EVENTS_EMBEDDING_CODE_VIEW" }
182182 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE" }
183183 />
0 commit comments