Версия 1.1.3 Добавлен показ даты статьи в списке статей администрирования.
This commit is contained in:
parent
4d6cba8848
commit
ff4206275b
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "vite-react-typescript-starter",
|
"name": "vite-react-typescript-starter",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"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"
|
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" />
|
<Plus size={16} className="mr-2" />
|
||||||
Новая статья
|
Новая
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</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>
|
<h3 className="text-sm font-medium text-gray-900 truncate">{article.title}</h3>
|
||||||
<p className="text-sm text-gray-500">
|
<p className="text-sm text-gray-500">
|
||||||
· {CategoryTitles[article.categoryId]} · {CityTitles[article.cityId]} · {article.readTime}{' '}
|
· {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>
|
</p>
|
||||||
{(() => {
|
{(() => {
|
||||||
const writerAuthors = article.authors
|
const writerAuthors = article.authors
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user