mirror of https://github.com/laurent22/joplin.git
parent
0da3881aa6
commit
e2db02887c
|
@ -1,4 +1,4 @@
|
|||
import { useRef, useMemo, useCallback } from 'react';
|
||||
import { useRef, useCallback } from 'react';
|
||||
|
||||
import Setting from '@joplin/lib/models/Setting';
|
||||
import useSource from './hooks/useSource';
|
||||
|
@ -27,13 +27,13 @@ interface Props {
|
|||
onLoadEnd?: Function;
|
||||
}
|
||||
|
||||
const webViewStyle = {
|
||||
backgroundColor: 'transparent',
|
||||
};
|
||||
|
||||
export default function NoteBodyViewer(props: Props) {
|
||||
const theme = themeStyle(props.themeId);
|
||||
|
||||
const webViewStyle: any = useMemo(() => {
|
||||
return { backgroundColor: theme.backgroundColor };
|
||||
}, [theme.backgroundColor]);
|
||||
|
||||
const dialogBoxRef = useRef(null);
|
||||
|
||||
const { source, injectedJs } = useSource(
|
||||
|
|
Loading…
Reference in New Issue