create product

This commit is contained in:
hamid zarghami
2025-09-22 12:24:21 +03:30
parent a18c52358b
commit 2a4608e258
34 changed files with 2402 additions and 17 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ const Header: FC = () => {
// const location = useLocation();
// const [popoverKey, setPopoverKey] = useState(0);
const { t } = useTranslation('global')
const { setOpenSidebar, openSidebar } = useSharedStore()
const { setOpenSidebar, openSidebar, hasSubMenu } = useSharedStore()
// useEffect(() => {
// setPopoverKey((prevKey) => prevKey + 1);
@@ -26,7 +26,7 @@ const Header: FC = () => {
// }
return (
<div className='fixed z-10 right-4 left-4 xl:right-[285px] top-4 xl:h-16 h-12 flex items-center px-6 bg-white justify-between rounded-[32px] xl:w-[calc(100%-305px)]'>
<div className={`fixed z-10 right-4 left-4 top-4 xl:h-16 h-12 flex items-center px-6 bg-white justify-between rounded-[32px] ${hasSubMenu ? 'xl:right-[320px] xl:w-[calc(100%-340px)]' : 'xl:right-[285px] xl:w-[calc(100%-305px)]'}`}>
<div className='min-w-[270px] hidden xl:block'>
<Input