|
@@ -1,19 +1,15 @@
|
|
|
import React, { useRef } from 'react';
|
|
|
import BusinessZone from './BusinessZone';
|
|
|
import SystemZone from './SystemZone';
|
|
|
-import { useDispatch } from 'react-redux';
|
|
|
-import { setBusinessFlow } from '@/states/BusinessFlowSlice';
|
|
|
|
|
|
interface NavMenuProps {
|
|
|
onMenuClick?: (key: string) => void;
|
|
|
}
|
|
|
|
|
|
const NavMenu: React.FC<NavMenuProps> = ({ onMenuClick }) => {
|
|
|
- const dispatch = useDispatch();
|
|
|
const systemZoneRef = useRef<HTMLDivElement>(null);
|
|
|
|
|
|
const onClick = (key: string) => {
|
|
|
- dispatch(setBusinessFlow(key));
|
|
|
onMenuClick?.(key);
|
|
|
};
|
|
|
|