mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
fix: change icon and name of last saved sidebar entry
Signed-off-by: Yannick Bungers <git@innay.de> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
10776de54f
commit
ff7a7a220d
2 changed files with 3 additions and 3 deletions
|
@ -356,7 +356,7 @@
|
||||||
"noteInfo": {
|
"noteInfo": {
|
||||||
"title": "Note info",
|
"title": "Note info",
|
||||||
"created": "Note created",
|
"created": "Note created",
|
||||||
"lastUpdated": "Last updated",
|
"lastUpdated": "Last saved at",
|
||||||
"lastUpdatedBy": "Last updated by",
|
"lastUpdatedBy": "Last updated by",
|
||||||
"contributors": "Count of contributors",
|
"contributors": "Count of contributors",
|
||||||
"wordCount": "Count of words"
|
"wordCount": "Count of words"
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { TimeFromNow } from '../../../../../common/time-from-now'
|
||||||
import { SidebarMenuInfoEntry } from '../../../sidebar-menu-info-entry/sidebar-menu-info-entry'
|
import { SidebarMenuInfoEntry } from '../../../sidebar-menu-info-entry/sidebar-menu-info-entry'
|
||||||
import { DateTime } from 'luxon'
|
import { DateTime } from 'luxon'
|
||||||
import React, { useMemo } from 'react'
|
import React, { useMemo } from 'react'
|
||||||
import { Pencil as IconPencil } from 'react-bootstrap-icons'
|
import { Save as IconSave } from 'react-bootstrap-icons'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,7 @@ export const NoteInfoLineUpdatedAt: React.FC = () => {
|
||||||
)
|
)
|
||||||
|
|
||||||
return !noteUpdateDateTime ? null : (
|
return !noteUpdateDateTime ? null : (
|
||||||
<SidebarMenuInfoEntry titleI18nKey={'editor.noteInfo.lastUpdated'} icon={IconPencil}>
|
<SidebarMenuInfoEntry titleI18nKey={'editor.noteInfo.lastUpdated'} icon={IconSave}>
|
||||||
<TimeFromNow time={noteUpdateDateTime} />
|
<TimeFromNow time={noteUpdateDateTime} />
|
||||||
</SidebarMenuInfoEntry>
|
</SidebarMenuInfoEntry>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue