update list ui
This commit is contained in:
@ -30,31 +30,28 @@ export default async function AdminEmailTemplates() {
|
|||||||
<table className="min-w-full divide-y divide-gray-300">
|
<table className="min-w-full divide-y divide-gray-300">
|
||||||
<thead className="bg-gray-50">
|
<thead className="bg-gray-50">
|
||||||
<tr>
|
<tr>
|
||||||
<th
|
|
||||||
scope="col"
|
|
||||||
className="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"
|
|
||||||
>
|
|
||||||
ID
|
|
||||||
</th>
|
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
||||||
|
style={{ width: "60%" }}
|
||||||
>
|
>
|
||||||
Title
|
Title
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
||||||
|
style={{ width: "10%" }}
|
||||||
>
|
>
|
||||||
Created
|
Created
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
|
||||||
|
style={{ width: "10%" }}
|
||||||
>
|
>
|
||||||
Modified
|
Modified
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" className="relative py-3.5 pl-3 pr-4 sm:pr-6">
|
<th scope="col" className="relative py-3.5 pl-3 pr-4 sm:pr-6" style={{ width: "15%" }}>
|
||||||
<span className="sr-only">Actions</span>
|
<span className="sr-only">Actions</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -63,14 +60,7 @@ export default async function AdminEmailTemplates() {
|
|||||||
{emailTemplates.length > 0 ? (
|
{emailTemplates.length > 0 ? (
|
||||||
emailTemplates.map((template) => (
|
emailTemplates.map((template) => (
|
||||||
<tr key={template.id}>
|
<tr key={template.id}>
|
||||||
<td className="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">
|
|
||||||
<Link
|
|
||||||
href={`/admin/email-templates/detail/${template.id}`}
|
|
||||||
className="text-indigo-600 hover:text-indigo-900"
|
|
||||||
>
|
|
||||||
{template.id.substring(0, 8)}...
|
|
||||||
</Link>
|
|
||||||
</td>
|
|
||||||
<td className="py-4 px-3 text-sm text-gray-500">
|
<td className="py-4 px-3 text-sm text-gray-500">
|
||||||
<Link
|
<Link
|
||||||
href={`/admin/email-templates/detail/${template.id}`}
|
href={`/admin/email-templates/detail/${template.id}`}
|
||||||
@ -81,9 +71,11 @@ export default async function AdminEmailTemplates() {
|
|||||||
</td>
|
</td>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||||
{new Date(template.createdAt).toLocaleDateString()}
|
{new Date(template.createdAt).toLocaleDateString()}
|
||||||
|
{new Date(template.createdAt).toLocaleTimeString()}
|
||||||
</td>
|
</td>
|
||||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||||
{new Date(template.modifiedAt).toLocaleDateString()}
|
{new Date(template.modifiedAt).toLocaleDateString()}
|
||||||
|
{new Date(template.modifiedAt).toLocaleTimeString()}
|
||||||
</td>
|
</td>
|
||||||
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
|
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user