Версия 1.1.3 Добавлен показ даты статьи в списке статей администрирования.
This commit is contained in:
parent
4d6cba8848
commit
ff4206275b
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vite-react-typescript-starter",
|
||||
"private": true,
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -194,7 +194,7 @@ export const ArticleList = React.memo(function ArticleList({
|
||||
className="inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"
|
||||
>
|
||||
<Plus size={16} className="mr-2" />
|
||||
Новая статья
|
||||
Новая
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
@ -225,7 +225,12 @@ export const ArticleList = React.memo(function ArticleList({
|
||||
<h3 className="text-sm font-medium text-gray-900 truncate">{article.title}</h3>
|
||||
<p className="text-sm text-gray-500">
|
||||
· {CategoryTitles[article.categoryId]} · {CityTitles[article.cityId]} · {article.readTime}{' '}
|
||||
<MinutesWord minutes={article.readTime} /> чтения
|
||||
<MinutesWord minutes={article.readTime} /> ·{' '}
|
||||
{new Date(article.publishedAt).toLocaleDateString('ru-RU', {
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
year: 'numeric',
|
||||
})}
|
||||
</p>
|
||||
{(() => {
|
||||
const writerAuthors = article.authors
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user