@@ -177,10 +177,7 @@ const Template: React.FC<TemplateProps> = ({
177177 const { instanceId, api_secret } = useContext ( EventCtx ) !
178178 const payload = usePayload ( )
179179 return (
180- < Card
181- className = { clsx ( classes . form , classes . template ) }
182- data-testid = "validate and send"
183- >
180+ < >
184181 < Typography className = { classes . heading } variant = "h3" >
185182 { headingIcon }
186183 { heading }
@@ -254,7 +251,7 @@ const Template: React.FC<TemplateProps> = ({
254251 { instanceId . firebase_app_id &&
255252 `&firebase_app_id=${ instanceId . firebase_app_id } ` }
256253 { instanceId . measurement_id &&
257- `&measurement_id=${ instanceId . measurement_id } ` } { " " }
254+ `&measurement_id=${ instanceId . measurement_id } ` } { " " } < br />
258255 HTTP/1.1 < br />
259256 HOST: { useEuEndpoint ? "region1.google-analytics.com" : "www.google-analytics.com" } < br />
260257 Content-Type: application/json
@@ -270,7 +267,7 @@ const Template: React.FC<TemplateProps> = ({
270267 tooltipText = "Copy payload"
271268 />
272269 </ section >
273- </ Card >
270+ </ >
274271 )
275272}
276273
@@ -279,8 +276,8 @@ const ValidateEvent: React.FC<ValidateEventProps> = ({formatPayload, payloadErro
279276 const request = useValidateEvent ( useEuEndpoint )
280277
281278 return (
282- < div className = { classes . form } >
283- < Box mb = { 1 } >
279+ < Root className = { classes . form } >
280+ < Box mb = { 1 } className = { clsx ( classes . form , classes . template ) } >
284281 < WithHelpText
285282 notched
286283 shrink
@@ -293,9 +290,7 @@ const ValidateEvent: React.FC<ValidateEventProps> = ({formatPayload, payloadErro
293290 < Switch
294291 data-testid = "use-eu-endpoint"
295292 checked = { useEuEndpoint }
296- onChange = { e => {
297- setUseEuEndpoint ( e . target . checked )
298- } }
293+ onChange = { e => setUseEuEndpoint ( e . target . checked ) }
299294 name = "use-eu-endpoint"
300295 color = "primary"
301296 />
@@ -304,23 +299,24 @@ const ValidateEvent: React.FC<ValidateEventProps> = ({formatPayload, payloadErro
304299 </ Grid >
305300 </ WithHelpText >
306301 </ Box >
307- < Loadable
308- request = { request }
302+ < Card className = { clsx ( classes . form , classes . template ) } data-testid = "validate and send" >
303+ < Loadable
304+ request = { request }
309305 renderNotStarted = { ( { validateEvent } ) => (
310306 < Template
311307 useEuEndpoint = { useEuEndpoint }
312308 heading = "This event has not been validated"
313309 headingIcon = { < Warning /> }
314310 body = {
315- < Root >
311+ < >
316312 < Typography >
317313 Update the event using the controls above.
318314 </ Typography >
319315 < Typography >
320316 When you're done editing the event, click "Validate Event" to
321317 check if the event is valid.
322318 </ Typography >
323- </ Root >
319+ </ >
324320 }
325321 validateEvent = { ( ) => {
326322 if ( formatPayload ) {
@@ -386,8 +382,9 @@ const ValidateEvent: React.FC<ValidateEventProps> = ({formatPayload, payloadErro
386382 }
387383 />
388384 ) }
389- />
390- </ div >
385+ />
386+ </ Card >
387+ </ Root >
391388 ) ;
392389}
393390
0 commit comments