Skip to content

Commit

Permalink
Merge pull request #198 from wrappid/WRPD-enhancement-183
Browse files Browse the repository at this point in the history
enhancement: delivery oriented fix
  • Loading branch information
anantakumarghosh authored Apr 6, 2024
2 parents 68aeac3 + f746f64 commit db01e2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package/components/layouts/_system/AppContainerLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function AppContainerLayout() {
};

const getRightDrawer = () => {
return <CoreDrawer open={false} />;
return null;
};

return (
Expand Down
6 changes: 4 additions & 2 deletions package/components/surfaces/DefaultAppBarContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { UtilityClasses, WrappidDataContext } from "@wrappid/styles";
import { useDispatch, useSelector } from "react-redux";

import CoreToolbar from "./CoreToolbar";
import { CoreResourceContext } from "../../config/contextHandler";
import { getSettingMeta } from "../../store/action/mdmAction";
import CoreClasses from "../../styles/CoreClasses";
import CoreAvatar from "../dataDisplay/CoreAvatar";
Expand All @@ -25,6 +26,7 @@ import QuickAddPopOver from "../utils/QuickAddPopOver";
export default function DefaultAppBarContent(props) {
const dispatch = useDispatch();
let { config } = React.useContext(WrappidDataContext);
let { appLogo } = React.useContext(CoreResourceContext);
const auth = useSelector((state) => state.auth);
const mdm = useSelector((state) => state.mdm);
const [getSettingMetaFlag, setGetSettingMetaFlag] = useState(false);
Expand All @@ -33,7 +35,7 @@ export default function DefaultAppBarContent(props) {

const {
handleDrawer,
logo,
logo = null,
logoEnabled: _logoEnabled = true,
leftMenuEnabled: _leftMenuEnabled = true,
} = props;
Expand Down Expand Up @@ -126,7 +128,7 @@ export default function DefaultAppBarContent(props) {
<CoreImage
height={40}
width={120}
src={logo}
src={logo || appLogo}
alt="WRAPPID" />
)}
</CoreStack>
Expand Down
6 changes: 2 additions & 4 deletions package/components/utils/CoreProfilePopOver.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useSelector } from "react-redux";

import CoreApiVersion from "./CoreApiVersion";
import CoreAppVersion from "./CoreAppVersion";
import { CoreRouteRegistryContext } from "../../config/contextHandler";
import CoreClasses from "../../styles/CoreClasses";
import CoreAvatar from "../dataDisplay/CoreAvatar";
import CoreDivider from "../dataDisplay/CoreDivider";
Expand All @@ -28,7 +27,6 @@ export default function CoreProfilePopOver(props) {
const navigate = nativeUseNavigate();
const auth = useSelector((state) => state?.auth);
const profile = useSelector((state) => state?.profile);
const routeRegistry = useContext(CoreRouteRegistryContext);

const { profileRegistration } = useSelector((state) => state?.api);

Expand All @@ -47,13 +45,13 @@ export default function CoreProfilePopOver(props) {
},
id : "viewProfile",
label: "View Profile",
link : routeRegistry?.profile,
link : "/profile",
},
{
icon : { icon: "settings", type: __IconTypes.MATERIAL_OUTLINED_ICON },
id : "settings",
label: "Settings",
link : routeRegistry?.settings,
link : "/settings",
} /* -- ,
{ type: MENU_SEPERATOR },
{
Expand Down

0 comments on commit db01e2b

Please sign in to comment.