Skip to content

Commit

Permalink
[ENHANCE] Added a feature to support additional support components in…
Browse files Browse the repository at this point in the history
… TopNavBar (#857)

added a feature to support additional support components
  • Loading branch information
jagadeeswaran-zipstack authored Nov 21, 2024
1 parent 4a53912 commit 2e5e8a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ try {
// Ignore if hook not available
}

function TopNavBar({ isSimpleLayout }) {
function TopNavBar({ isSimpleLayout, topNavBarOptions }) {
const navigate = useNavigate();
const { sessionDetails } = useSessionStore();
const { orgName, remainingTrialDays, allOrganization, orgId } =
Expand Down Expand Up @@ -308,6 +308,7 @@ function TopNavBar({ isSimpleLayout }) {
<Col span={4}>
<Row justify="end" align="middle">
<Space>
{topNavBarOptions}
{isUnstract && TrialDaysInfo && (
<TrialDaysInfo remainingTrialDays={remainingTrialDays} />
)}
Expand Down Expand Up @@ -339,6 +340,7 @@ function TopNavBar({ isSimpleLayout }) {

TopNavBar.propTypes = {
isSimpleLayout: PropTypes.bool,
topNavBarOptions: PropTypes.node,
};

export { TopNavBar };
2 changes: 1 addition & 1 deletion frontend/src/layouts/page-layout/PageLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function PageLayout({ sideBarOptions, topNavBarOptions }) {

return (
<div className="landingPage">
<TopNavBar {...topNavBarOptions} />
<TopNavBar topNavBarOptions={topNavBarOptions} />
<Layout>
<SideNavBar collapsed={collapsed} {...sideBarOptions} />
<Layout>
Expand Down

0 comments on commit 2e5e8a1

Please sign in to comment.