@@ -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
@@ -87,18 +87,18 @@ const EventActionCell = ({
8787 ) }
8888
8989 { /* Open event details */ }
90- < IconButton
91- callback = { onClickEventDetails }
92- iconClassname = { "more" }
90+ < ButtonLikeAnchor
91+ onClick = { onClickEventDetails }
92+ className = { "more" }
9393 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_VIEW" }
9494 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.DETAILS" }
9595 />
9696
9797 { /* If event belongs to a series then the corresponding series details can be opened */ }
9898 { ! ! row . series && (
99- < IconButton
100- callback = { onClickSeriesDetails }
101- iconClassname = { "more-series" }
99+ < ButtonLikeAnchor
100+ onClick = { onClickSeriesDetails }
101+ className = { "more-series" }
102102 editAccessRole = { "ROLE_UI_SERIES_DETAILS_VIEW" }
103103 tooltipText = { "EVENTS.SERIES.TABLE.TOOLTIP.DETAILS" }
104104 />
@@ -135,45 +135,45 @@ const EventActionCell = ({
135135
136136 { /* If the event has comments and no open comments then the comment tab of event details can be opened directly */ }
137137 { row . has_comments && ! row . has_open_comments && (
138- < IconButton
139- callback = { ( ) => onClickComments ( ) }
140- iconClassname = { "comments" }
138+ < ButtonLikeAnchor
139+ onClick = { ( ) => onClickComments ( ) }
140+ className = { "comments" }
141141 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
142142 />
143143 ) }
144144
145145 { /* If the event has comments and open comments then the comment tab of event details can be opened directly */ }
146146 { row . has_comments && row . has_open_comments && (
147- < IconButton
148- callback = { ( ) => onClickComments ( ) }
149- iconClassname = { "comments-open" }
147+ < ButtonLikeAnchor
148+ onClick = { ( ) => onClickComments ( ) }
149+ className = { "comments-open" }
150150 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS" }
151151 />
152152 ) }
153153
154154 { /* If the event is in in a paused workflow state then a warning icon is shown and workflow tab of event
155155 details can be opened directly */ }
156156 { row . workflow_state === "PAUSED" &&
157- < IconButton
158- callback = { ( ) => onClickWorkflow ( ) }
159- iconClassname = { "fa fa-warning" }
157+ < ButtonLikeAnchor
158+ onClick = { ( ) => onClickWorkflow ( ) }
159+ className = { "fa fa-warning" }
160160 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_WORKFLOWS_EDIT" }
161161 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW" }
162162 />
163163 }
164164
165165 { /* Open assets tab of event details directly*/ }
166- < IconButton
167- callback = { ( ) => onClickAssets ( ) }
168- iconClassname = { "fa fa-folder-open" }
166+ < ButtonLikeAnchor
167+ onClick = { ( ) => onClickAssets ( ) }
168+ className = { "fa fa-folder-open" }
169169 editAccessRole = { "ROLE_UI_EVENTS_DETAILS_ASSETS_VIEW" }
170170 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS" }
171171 />
172172
173173 { /* Open dialog for embedded code*/ }
174- < IconButton
175- callback = { ( ) => showEmbeddingCodeModal ( ) }
176- iconClassname = { "fa fa-link" }
174+ < ButtonLikeAnchor
175+ onClick = { ( ) => showEmbeddingCodeModal ( ) }
176+ className = { "fa fa-link" }
177177 editAccessRole = { "ROLE_UI_EVENTS_EMBEDDING_CODE_VIEW" }
178178 tooltipText = { "EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE" }
179179 />
0 commit comments