mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00
New note creation (#1998)
* Add new note page Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Make new note button clickable Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Add CHANGELOG note Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Refactor error messages Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Use features note in mock Signed-off-by: Erik Michelson <github@erik.michelson.eu> * Common Error page should always use i18n Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
1fa94f9ea6
commit
85eff24be1
10 changed files with 178 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -8,13 +8,16 @@ import React from 'react'
|
|||
import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { Button } from 'react-bootstrap'
|
||||
import Link from 'next/link'
|
||||
|
||||
export const NewNoteButton: React.FC = () => {
|
||||
useTranslation()
|
||||
|
||||
return (
|
||||
<Button className='mx-2' size='sm' variant='primary'>
|
||||
<ForkAwesomeIcon icon='plus' /> <Trans i18nKey='editor.appBar.new' />
|
||||
</Button>
|
||||
<Link href={'/new'} passHref={true}>
|
||||
<Button className='mx-2' size='sm' variant='primary'>
|
||||
<ForkAwesomeIcon icon='plus' /> <Trans i18nKey='editor.appBar.new' />
|
||||
</Button>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue