mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Update dependency prettier to v2.3.1 (#1312)
* Update dependency prettier to v2.3.1 Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
119171a95c
commit
5933fb801d
4 changed files with 11 additions and 9 deletions
|
@ -7,8 +7,9 @@
|
|||
import React, { useContext, useMemo } from 'react'
|
||||
import { IframeEditorToRendererCommunicator } from '../../render-page/iframe-editor-to-renderer-communicator'
|
||||
|
||||
const IFrameEditorToRendererCommunicatorContext =
|
||||
React.createContext<IframeEditorToRendererCommunicator | undefined>(undefined)
|
||||
const IFrameEditorToRendererCommunicatorContext = React.createContext<IframeEditorToRendererCommunicator | undefined>(
|
||||
undefined
|
||||
)
|
||||
|
||||
export const useIFrameEditorToRendererCommunicator: () => IframeEditorToRendererCommunicator | undefined = () =>
|
||||
useContext(IFrameEditorToRendererCommunicatorContext)
|
||||
|
|
|
@ -9,8 +9,9 @@ import { IframeRendererToEditorCommunicator } from '../../render-page/iframe-ren
|
|||
import { useSelector } from 'react-redux'
|
||||
import { ApplicationState } from '../../../redux'
|
||||
|
||||
const IFrameRendererToEditorCommunicatorContext =
|
||||
createContext<IframeRendererToEditorCommunicator | undefined>(undefined)
|
||||
const IFrameRendererToEditorCommunicatorContext = createContext<IframeRendererToEditorCommunicator | undefined>(
|
||||
undefined
|
||||
)
|
||||
|
||||
export const useIFrameRendererToEditorCommunicator: () => IframeRendererToEditorCommunicator | undefined = () =>
|
||||
useContext(IFrameRendererToEditorCommunicatorContext)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue