menu: on click on prduct open details as BS, also add redirect button to detials page if user click on redirect button

This commit is contained in:
2025-12-23 01:36:46 +03:00
parent fc1a75bc4b
commit 5c27303695
16 changed files with 224 additions and 78 deletions

View File

@@ -6,6 +6,8 @@ import { useAppSelector } from "redux/hooks";
import { ProBlack2 } from "ThemeConstants";
import ProTitle from "../ProTitle";
import useBreakPoint from "hooks/useBreakPoint";
import NextIcon from "components/Icons/NextIcon";
const { Text } = Typography;
interface ProHeaderProps {
@@ -41,7 +43,6 @@ const ProHeader: FunctionComponent<ProHeaderProps> = ({
top: 0,
display: "flex",
zIndex: 1000,
flexDirection: isRTL ? "row-reverse" : "row",
justifyContent: "space-between",
alignItems: "center", // This centers vertically
backgroundColor: themeName === "light" ? "white" : ProBlack2,
@@ -52,10 +53,9 @@ const ProHeader: FunctionComponent<ProHeaderProps> = ({
>
<Button
type="text"
icon={<BackIcon />}
icon={isRTL ? <NextIcon /> : <BackIcon />}
style={{
flex: 0, // Don't allow this to grow
marginRight: "auto", // Push it to the start
}}
onClick={handleBack}
/>