mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Reorganize redux and hooks (1/4) (#985)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
bdf8110676
commit
1b7abf9f27
61 changed files with 898 additions and 986 deletions
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { DateTime } from 'luxon'
|
||||
import React from 'react'
|
||||
|
@ -17,9 +17,9 @@ import './document-infobar.scss'
|
|||
|
||||
export interface DocumentInfobarProps {
|
||||
changedAuthor: string
|
||||
changedTime: number
|
||||
changedTime: DateTime
|
||||
createdAuthor: string
|
||||
createdTime: number
|
||||
createdTime: DateTime
|
||||
editable: boolean
|
||||
noteId: string
|
||||
viewCount: number
|
||||
|
@ -43,12 +43,12 @@ export const DocumentInfobar: React.FC<DocumentInfobarProps> = ({
|
|||
<div className={'d-flex flex-column'}>
|
||||
<DocumentInfoTimeLine
|
||||
mode={DocumentInfoLineWithTimeMode.CREATED}
|
||||
time={ DateTime.fromSeconds(createdTime) }
|
||||
time={createdTime}
|
||||
userName={createdAuthor}
|
||||
profileImageSrc={'/img/avatar.png'}/>
|
||||
<DocumentInfoTimeLine
|
||||
mode={DocumentInfoLineWithTimeMode.EDITED}
|
||||
time={ DateTime.fromSeconds(changedTime) }
|
||||
time={changedTime}
|
||||
userName={changedAuthor}
|
||||
profileImageSrc={'/img/avatar.png'}/>
|
||||
<hr/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue