|
|
|
@ -11,11 +11,15 @@ export default function Detail({ client, user }) {
|
|
|
|
|
<div className="col-sm-5"> |
|
|
|
|
<div className="card"> |
|
|
|
|
<div className="card-body"> |
|
|
|
|
<h5 className="card-title">{event.eventType}</h5> |
|
|
|
|
<h5 className="card-title text-capitalize"> |
|
|
|
|
{event.eventType.replace("_", " ")} |
|
|
|
|
</h5> |
|
|
|
|
<h6 class="card-subtitle mb-2 text-muted"> |
|
|
|
|
{moment(event.createdAt).fromNow()} |
|
|
|
|
</h6> |
|
|
|
|
<p className="card-text">{event.value}</p> |
|
|
|
|
<p className="card-text text-capitalize"> |
|
|
|
|
{event.value.replace("_", " ")} |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -26,7 +30,9 @@ export default function Detail({ client, user }) {
|
|
|
|
|
<Layout user={user}> |
|
|
|
|
<h4 className="display-4"> |
|
|
|
|
{client.name}{" "} |
|
|
|
|
<span class="badge badge-pill badge-dark">{client.status}</span> |
|
|
|
|
<span class="badge badge-pill badge-dark text-capitalize"> |
|
|
|
|
{client.status.replace("_", " ")} |
|
|
|
|
</span> |
|
|
|
|
</h4> |
|
|
|
|
|
|
|
|
|
<h4 className="lead text-muted">{client.email}</h4> |
|
|
|
|