diff --git a/FRONTEND/src/App.tsx b/FRONTEND/src/App.tsx index c850703..75c02da 100644 --- a/FRONTEND/src/App.tsx +++ b/FRONTEND/src/App.tsx @@ -510,6 +510,7 @@ function App() { setExpanded={setExpandedBottomBar} activeTabBottom={activeTabBottom} setActiveTabBottom={setActiveTabBottom} + isExpand={expandedBottomBar} /> diff --git a/FRONTEND/src/components/BottomToolBar.tsx b/FRONTEND/src/components/BottomToolBar.tsx index 6ad49ed..91a3178 100644 --- a/FRONTEND/src/components/BottomToolBar.tsx +++ b/FRONTEND/src/components/BottomToolBar.tsx @@ -37,6 +37,7 @@ interface TabsProps { setExpanded: (value: React.SetStateAction) => void; activeTabBottom: string; setActiveTabBottom: (value: React.SetStateAction) => void; + isExpand: boolean; } const BottomToolBar = ({ @@ -54,6 +55,7 @@ const BottomToolBar = ({ setExpanded, setActiveTabBottom, activeTabBottom, + isExpand, }: TabsProps) => { const user = useMemo(() => { return localStorage.getItem("user") && @@ -63,7 +65,7 @@ const BottomToolBar = ({ }, []); const [valueInput, setValueInput] = useState(""); // const [activeTabBottom, setActiveTabBottom] = useState("command"); - const [isExpand, setIsExpand] = useState(true); + // const [isExpand, setIsExpand] = useState(true); return ( { - setIsExpand((prev) => !prev); setExpanded((prev) => !prev); }} > diff --git a/FRONTEND/src/components/DrawerControl.tsx b/FRONTEND/src/components/DrawerControl.tsx index 4454065..4b46e30 100644 --- a/FRONTEND/src/components/DrawerControl.tsx +++ b/FRONTEND/src/components/DrawerControl.tsx @@ -778,7 +778,7 @@ export const DrawerSwitchControl: React.FC = ({ const isOddA = numA % 2 !== 0; const isOddB = numB % 2 !== 0; - if (numA / 48 > 1) return 0; + // if (numA / 48 > 1) return 0; // Ưu tiên số lẻ lên trước if (isOddA && !isOddB) return -1;