mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-08 10:22:47 -04:00
fix: useTranslation hook in react components
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
8d497bcfc5
commit
97389fe0c4
3 changed files with 9 additions and 5 deletions
|
@ -7,10 +7,10 @@ import type { CommonModalProps } from '../../common/modals/common-modal'
|
|||
import { CommonModal } from '../../common/modals/common-modal'
|
||||
import { EditorSettingsTabContent } from './editor/editor-settings-tab-content'
|
||||
import { GlobalSettingsTabContent } from './global/global-settings-tab-content'
|
||||
import { t } from 'i18next'
|
||||
import React from 'react'
|
||||
import { Modal, Tab, Tabs } from 'react-bootstrap'
|
||||
import { Gear as IconGear } from 'react-bootstrap-icons'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
/**
|
||||
* Shows global and scope specific settings
|
||||
|
@ -19,6 +19,8 @@ import { Gear as IconGear } from 'react-bootstrap-icons'
|
|||
* @param onHide callback that is executed if the modal should be closed
|
||||
*/
|
||||
export const SettingsModal: React.FC<CommonModalProps> = ({ show, onHide }) => {
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<CommonModal
|
||||
show={show}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue