0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 02:32:41 +00:00

Small cleanups

This commit is contained in:
Trevor Buckner
2024-12-09 17:04:16 -05:00
parent bae9fe939d
commit aa951ff96c
2 changed files with 8 additions and 13 deletions

View File

@@ -32,10 +32,8 @@ const INITIAL_CONTENT = dedent`
//v=====----------------------< Brew Page Component >---------------------=====v//
const BrewPage = (props)=>{
props = {
contents : '',
index : 0,
onVisibilityChange : ()=>{},
onCenterPageChange : ()=>{},
contents : '',
index : 0,
...props
};
const pageRef = useRef(null);
@@ -77,7 +75,7 @@ const BrewPage = (props)=>{
visibleObserver.disconnect();
centerObserver.disconnect();
};
}, [props.index, props.onVisibilityChange, props.onCenterPageChange]);
}, []);
return <div className={props.className} id={`p${props.index + 1}`} data-index={props.index} ref={pageRef} style={props.style}>
<div className='columnWrapper' dangerouslySetInnerHTML={{ __html: cleanText }} />