openreplay/frontend/app/components/Session_/EventsBlock/UtxEvent.tsx
Delirium cc34356294
[wip] user testing ui/tracker (#1520)
* feat(ui): some design mocks

* fix(ui): some fixes for stuff

* feat(ui): test overview page layout

* feat(ui): fix placeholder

* feat(ui): answers table modal

* feat(tracker): user testing module in tracker

* fix(tracker): add "thank you" section, refactor file to make it readable

* fix(tracker): naming

* fix(tracker): naming

* fix(tracker): some refactorings for user testing modd

* feat(tracker): export assist vers to window obj, add recorder manager for user testing

* feat(tracker): refactor UT file

* feat(tracker): add recording delay for UT module

* feat(tracker): dnd for UT widget

* fix(tracker): changelog for assist

* fix(tracker): cover ut with tests

* fix(tracker): update package scripts to include testing before releasing packages

* fix(UI): fix uxt routes

* feat(ui): uxt store

* feat(ui): uxt store connection

* feat(ui): some api connections for utx

* feat(ui): some api connections for utx

* feat(ui): some api connections for utx

* feat(ui): api connections

* feat(ui): api connections

* feat(ui): api connections

* feat(ui): api connections

* feat(ui): utx components for replay

* feat(ui): utx components for replay

* feat(ui): make events shared

* feat(ui): final fixes
2023-11-29 12:22:30 +01:00

26 lines
No EOL
998 B
TypeScript

import React from 'react'
import { durationFromMsFormatted } from "App/date";
function UtxEvent({ event }: any) {
return (
<div className={'flex flex-col'}>
<div className={'border border-gray-light rounded bg-teal-light py-2 px-4 m-4 shadow'}>
<div className={'w-full flex items-center justify-between'}>
<div className={'bg-white rounded border border-gray-light px-2'}>{event.title}</div>
<div className={'color-gray-medium'}>{durationFromMsFormatted(event.duration)}</div>
</div>
{event.description && <div className="font-semibold">{event.description}</div>}
</div>
{event.comment ? (
<div className={'border border-gray-light rounded bg-cyan py-2 px-4 mx-4 mb-4 shadow'}>
<div className={'bg-white rounded border border-gray-light px-2 w-fit'}>
Participant Response
</div>
<div>{event.comment}</div>
</div>
) : null}
</div>
);
}
export default UtxEvent