mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 04:24:43 -04:00
Adapt react-client to use the real backend API (#1545)
Co-authored-by: Philip Molares <philip.molares@udo.edu> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
3399ed2023
commit
26f90505ff
227 changed files with 4726 additions and 2310 deletions
|
@ -7,9 +7,9 @@
|
|||
import React, { Fragment, useCallback, useState } from 'react'
|
||||
import { Button, Card } from 'react-bootstrap'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { getApiUrl } from '../../../api/utils'
|
||||
import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon'
|
||||
import { AccountDeletionModal } from './account-deletion-modal'
|
||||
import { apiUrl } from '../../../utils/api-url'
|
||||
|
||||
/**
|
||||
* Profile page section that allows to export all data from the account or to delete the account.
|
||||
|
@ -33,7 +33,7 @@ export const ProfileAccountManagement: React.FC = () => {
|
|||
<Card.Title>
|
||||
<Trans i18nKey='profile.accountManagement' />
|
||||
</Card.Title>
|
||||
<Button variant='secondary' block href={getApiUrl() + 'me/export'} className='mb-2'>
|
||||
<Button variant='secondary' block href={apiUrl + 'me/export'} className='mb-2'>
|
||||
<ForkAwesomeIcon icon='cloud-download' fixedWidth={true} className='mx-2' />
|
||||
<Trans i18nKey='profile.exportUserData' />
|
||||
</Button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue