mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-03 16:38:50 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
41
src/pages/history.tsx
Normal file
41
src/pages/history.tsx
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import React, { useEffect } from 'react'
|
||||
import type { NextPage } from 'next'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { HistoryToolbar } from '../components/history-page/history-toolbar/history-toolbar'
|
||||
import { safeRefreshHistoryState } from '../redux/history/methods'
|
||||
import { Row } from 'react-bootstrap'
|
||||
import { HistoryContent } from '../components/history-page/history-content/history-content'
|
||||
import { LandingLayout } from '../components/landing-layout/landing-layout'
|
||||
import { HistoryToolbarStateContextProvider } from '../components/history-page/history-toolbar/toolbar-context/history-toolbar-state-context-provider'
|
||||
|
||||
/**
|
||||
* The page that shows the local and remote note history.
|
||||
*/
|
||||
const HistoryPage: NextPage = () => {
|
||||
useTranslation()
|
||||
|
||||
useEffect(() => {
|
||||
safeRefreshHistoryState()
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<LandingLayout>
|
||||
<HistoryToolbarStateContextProvider>
|
||||
<h1 className='mb-4'>
|
||||
<Trans i18nKey={'landing.navigation.history'} />
|
||||
</h1>
|
||||
<Row className={'justify-content-center mt-5 mb-3'}>
|
||||
<HistoryToolbar />
|
||||
</Row>
|
||||
<HistoryContent />
|
||||
</HistoryToolbarStateContextProvider>
|
||||
</LandingLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default HistoryPage
|
Loading…
Add table
Add a link
Reference in a new issue