mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-01-12 07:12:54 +01:00
Finished task 1. Added task for backwards compatibility on existing Noodl projects
This commit is contained in:
@@ -40,7 +40,7 @@ export function SideNavigationButton({
|
||||
menuItems
|
||||
}: SideNavigationButtonProps) {
|
||||
const context = useSideNavigationContext();
|
||||
const iconRef = useRef();
|
||||
const iconRef = useRef<HTMLDivElement>(null);
|
||||
const hasMenu = Boolean(menuItems);
|
||||
const [isMenuVisible, setIsMenuVisible] = useState(false);
|
||||
|
||||
|
||||
@@ -104,10 +104,7 @@ export function Columns({
|
||||
flexGrow: 0
|
||||
}}
|
||||
>
|
||||
{
|
||||
// @ts-expect-error
|
||||
React.cloneElement(child)
|
||||
}
|
||||
{React.cloneElement(child)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -36,7 +36,7 @@ export function ContextMenu({
|
||||
renderDirection
|
||||
}: ContextMenuProps) {
|
||||
const [isContextMenuVisible, setIsContextMenuVisible] = useState(false);
|
||||
const toggleRef = useRef();
|
||||
const toggleRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (isContextMenuVisible) {
|
||||
|
||||
Reference in New Issue
Block a user