@acuteinfo/common-screens 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2469,7 +2469,7 @@ const useStyles = makeStyles((theme) => ({
2469
2469
  },
2470
2470
  }));
2471
2471
 
2472
- const AppbarWrapper = ({ handleDrawerOpen, handleDrawerClose, open, authState, LanguageComponent, SearchComponent, dashboardUrl, logos, bankLogo, profilePic, handleLogout, handleProfile, navigate, hideGreetings, menuIconToRight = false, }) => {
2472
+ const AppbarWrapper = ({ handleDrawerOpen, handleDrawerClose, open, authState, LanguageComponent, SearchComponent, dashboardUrl, logos, bankLogo, profilePic, handleLogout, handleProfile, navigate, hideGreetings, menuIconPosition = "left", }) => {
2473
2473
  const classes = useStyles();
2474
2474
  const { t } = useTranslation();
2475
2475
  const LightTooltip = styled(({ className, ...props }) => (jsx(Tooltip, { ...props, classes: { popper: className } })))(({ theme }) => ({
@@ -2497,7 +2497,7 @@ const AppbarWrapper = ({ handleDrawerOpen, handleDrawerClose, open, authState, L
2497
2497
  alignItems: "center",
2498
2498
  height: "80px",
2499
2499
  width: "227px",
2500
- flexDirection: menuIconToRight ? "row-reverse" : "row"
2500
+ flexDirection: menuIconPosition === "right" ? "row-reverse" : "row"
2501
2501
  }, children: [open ? (jsx(IconButton$1, { disableRipple: true, onClick: () => handleDrawerClose(), className: classes.DrawerClose_icon, children: jsx(MenuOutlinedIcon, { fontSize: "large" }) })) : (jsx(IconButton$1, { disableRipple: true, "aria-label": "open drawer", onClick: () => handleDrawerOpen(), className: classes.DrawerClose_icon, children: jsx(MenuOutlinedIcon, { fontSize: "large" }) })), jsxs("div", { children: [jsx("img", { src: Boolean(logos?.logo) ? logos?.logo : bankLogo, alt: "CbsEnfinity", className: classes.logo, onClick: (e) => {
2502
2502
  e.preventDefault();
2503
2503
  navigate(dashboardUrl ?? "./dashboard");