Skip to content

Commit

Permalink
remove template. works for plp and landing
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark committed Nov 8, 2024
1 parent aeb3640 commit 507ab97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/Banner/OfflineBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { cx } from '@leafygreen-ui/emotion';
import Link from '../Link';
import { baseBannerStyle, offlineBannerStyle } from './styles/bannerItemStyle';

const OfflineBanner = ({ linkUrl = 'https://mongodb.com/docs', template = 'document' }) => {
const OfflineBanner = ({ linkUrl = 'https://mongodb.com/docs' }) => {
return (
<LeafyBanner className={cx(baseBannerStyle, offlineBannerStyle({ template }))} variant={'warning'}>
<LeafyBanner className={cx(baseBannerStyle, offlineBannerStyle)} variant={'warning'}>
You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the
latest version of the page or use interactive features, visit the&nbsp;
<Link to={linkUrl}>live page.</Link>
Expand Down
12 changes: 5 additions & 7 deletions src/components/Banner/styles/bannerItemStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ export const baseBannerStyle = css`
}
`;

export const offlineBannerStyle = ({ template }) => {
return css`
max-width: ${CONTENT_MAX_WIDTH}px;
margin-left: auto;
margin-right: auto;
`;
};
export const offlineBannerStyle = css`
max-width: ${CONTENT_MAX_WIDTH}px;
margin-left: auto;
margin-right: auto;
`;

0 comments on commit 507ab97

Please sign in to comment.