11import { Route , Routes , useLocation , useParams } from "react-router-dom" ;
22import Button from "../../../common/Button/Button" ;
3- import { CloseIcon , NextIcon , PreviousIcon } from "../../../common/Icons" ;
3+ import {
4+ ArrowForwardIcon ,
5+ CloseIcon ,
6+ ArrowBackIcon ,
7+ } from "../../../common/Icons" ;
48import useSWR from "swr" ;
59import { Event , Delivery } from "../../../typings/Event" ;
610import Badge from "../../../common/Badge/Badge" ;
@@ -74,7 +78,12 @@ const EventData = ({
7478 danger = { event . status === "failed" }
7579 />
7680
77- < Button minimal onClick = { ( ) => navigateEvent ( "/" ) } >
81+ < Button
82+ icon
83+ iconLabel = "Close"
84+ minimal
85+ onClick = { ( ) => navigateEvent ( "/" ) }
86+ >
7887 < CloseIcon />
7988 </ Button >
8089 </ div >
@@ -83,7 +92,7 @@ const EventData = ({
8392 < div className = "drawer__body" >
8493 < div className = "event-data" >
8594 < div className = "event-data__overview" >
86- < h3 className = "title -m" > Overview</ h3 >
95+ < h3 className = "subtitle -m" > Overview</ h3 >
8796 < dl className = "body-m description-list" >
8897 < div >
8998 < dt > ID</ dt >
@@ -127,7 +136,9 @@ const EventData = ({
127136
128137 < div className = "event-data__metadata" >
129138 < h3 className = "subtitle-m" > Metadata</ h3 >
130- < pre className = "mono-s" > { JSON . stringify ( event . metadata , null , 2 ) } </ pre >
139+ < pre className = "mono-s" >
140+ { JSON . stringify ( event . metadata , null , 2 ) }
141+ </ pre >
131142 </ div >
132143 </ div >
133144 </ div >
@@ -163,7 +174,12 @@ const EventAttempts = ({
163174 </ div >
164175
165176 < div >
166- < Button minimal onClick = { ( ) => navigateEvent ( "/" ) } >
177+ < Button
178+ icon
179+ iconLabel = "Close"
180+ minimal
181+ onClick = { ( ) => navigateEvent ( "/" ) }
182+ >
167183 < CloseIcon />
168184 </ Button >
169185 </ div >
@@ -217,8 +233,9 @@ const EventAttempts = ({
217233 success = { delivery . status === "success" }
218234 danger = { delivery . status === "failed" }
219235 />
220- { /* TODO: use RightArrowIcon */ }
221- < NextIcon />
236+ < span className = "icon-container" >
237+ < ArrowForwardIcon />
238+ </ span >
222239 </ span >
223240 </ span >
224241 </ li >
@@ -251,7 +268,7 @@ const EventAttemptDetails = ({
251268 minimal
252269 onClick = { ( ) => navigateEvent ( `/${ event . id } /attempts` ) }
253270 >
254- < PreviousIcon />
271+ < ArrowBackIcon />
255272 Attempts { deliveryIndex }
256273 </ Button >
257274 </ div >
@@ -263,7 +280,12 @@ const EventAttemptDetails = ({
263280 danger = { delivery . status === "failed" }
264281 />
265282
266- < Button minimal onClick = { ( ) => navigateEvent ( "/" ) } >
283+ < Button
284+ icon
285+ iconLabel = "Close"
286+ minimal
287+ onClick = { ( ) => navigateEvent ( "/" ) }
288+ >
267289 < CloseIcon />
268290 </ Button >
269291 </ div >
@@ -272,7 +294,7 @@ const EventAttemptDetails = ({
272294 < div className = "drawer__body" >
273295 < div className = "event-attempt-details" >
274296 < div className = "event-attempt-details__overview" >
275- < h3 className = "title -m" > Overview</ h3 >
297+ < h3 className = "subtitle -m" > Overview</ h3 >
276298
277299 < dl className = "body-m description-list" >
278300 < div >
@@ -325,7 +347,9 @@ const EventAttemptDetails = ({
325347
326348 < div className = "event-attempt-details__result" >
327349 < h3 className = "subtitle-m" > Response</ h3 >
328- < pre className = "mono-s" > { JSON . stringify ( delivery . response_data , null , 2 ) } </ pre >
350+ < pre className = "mono-s" >
351+ { JSON . stringify ( delivery . response_data , null , 2 ) }
352+ </ pre >
329353 </ div >
330354 </ div >
331355 </ div >
0 commit comments