mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
date format
This commit is contained in:
@@ -64,7 +64,7 @@ export const ColumnHeader: React.FC = () => {
|
||||
<Column.Wrapper style={columnStyles.topic}>
|
||||
<Column.Text>Topic</Column.Text>
|
||||
</Column.Wrapper>
|
||||
<Column.Wrapper style={columnStyles.updated} className="justify-end">
|
||||
<Column.Wrapper style={columnStyles.updated}>
|
||||
<Column.Text>Updated</Column.Text>
|
||||
</Column.Wrapper>
|
||||
</div>
|
||||
|
||||
@@ -6,6 +6,7 @@ import { Badge } from "@/components/ui/badge"
|
||||
import { Column } from "./column"
|
||||
import { useMedia } from "react-use"
|
||||
import { useColumnStyles } from "../hooks/use-column-styles"
|
||||
import { format } from "date-fns"
|
||||
|
||||
interface PageItemProps {
|
||||
page: PersonalPage
|
||||
@@ -47,8 +48,8 @@ export const PageItem = React.forwardRef<HTMLAnchorElement, PageItemProps>(({ pa
|
||||
</>
|
||||
)}
|
||||
|
||||
<Column.Wrapper style={columnStyles.updated} className="justify-end">
|
||||
<Column.Text className="text-[13px]">{page.updatedAt.toLocaleDateString()}</Column.Text>
|
||||
<Column.Wrapper style={columnStyles.updated} className="flex justify-end">
|
||||
<Column.Text className="text-[13px]">{format(new Date(page.updatedAt), "d MMM yyyy")}</Column.Text>
|
||||
</Column.Wrapper>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user