Fix ref to scrolling

This commit is contained in:
Reiss Cashmore 2023-10-30 14:41:45 +00:00
parent 74a194fe53
commit b51f8c0f1f

View File

@ -21,8 +21,9 @@ export default function Component({ service }) {
return undefined; return undefined;
}, [refreshTimer, widget?.refreshInterval]); }, [refreshTimer, widget?.refreshInterval]);
const scrollingDisableStyle = widget?.allowScrolling const scrollingDisableStyle =
? "pointer-events:none; overflow: hidden;" widget?.allowScrolling === "no"
? "pointer-events:none; overflow: hidden"
: ""; : "";
const sizeClasses = `h-${widget?.sizes?.xs || 80} sm:h-${ const sizeClasses = `h-${widget?.sizes?.xs || 80} sm:h-${
@ -53,7 +54,6 @@ export default function Component({ service }) {
); );
} }
function Block({ children }) { function Block({ children }) {
return ( return (
<div <div