@qlean/york-web
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -94,4 +94,3 @@ "use strict"; | ||
regions = _ref2$content.regions, | ||
profile = _ref2$content.profile, | ||
hideTabs = _ref2.hideTabs; | ||
profile = _ref2$content.profile; | ||
var tab = tabs.find(function (_ref3) { | ||
@@ -117,3 +116,3 @@ var name = _ref3.name; | ||
name: "logo" | ||
}, _react["default"].createElement(Logo, null)), isNavigationAvailable && !hideTabs && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_primitive.Separator, { | ||
}, _react["default"].createElement(Logo, null)), isNavigationAvailable && tabs.length > 1 && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_primitive.Separator, { | ||
width: 3 | ||
@@ -120,0 +119,0 @@ }), _react["default"].createElement(_Tabs["default"], { |
@@ -245,4 +245,3 @@ "use strict"; | ||
regions = _ref4$content.regions, | ||
profile = _ref4$content.profile, | ||
hideTabs = _ref4.hideTabs; | ||
profile = _ref4$content.profile; | ||
var analyticsContext = (0, _react.useContext)(_yorkAnalytics.AnalyticsContext); | ||
@@ -297,3 +296,3 @@ | ||
onClick: onRequestClose | ||
}, isOpened ? _react["default"].createElement(BurgerClosedIcon, null) : _react["default"].createElement(BurgerOpenedIcon, null)))), !hideTabs && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(StyledTabsContainer, { | ||
}, isOpened ? _react["default"].createElement(BurgerClosedIcon, null) : _react["default"].createElement(BurgerOpenedIcon, null)))), tabs.length > 1 && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(StyledTabsContainer, { | ||
justifyContent: "center" | ||
@@ -300,0 +299,0 @@ }, tabs.map(function (_ref7) { |
@@ -35,3 +35,3 @@ "use strict"; | ||
isPlusSubscriber: _propTypes["default"].bool.isRequired, | ||
defaultTab: _propTypes["default"].string, | ||
defaultTab: _propTypes["default"].string.isRequired, | ||
selectedLevelOneItem: _propTypes["default"].string, | ||
@@ -48,4 +48,3 @@ selectedLevelTwoItem: _propTypes["default"].string, | ||
profile: _propTypes["default"].arrayOf(menuItemShape.isRequired).isRequired | ||
}).isRequired, | ||
hideTabs: _propTypes["default"].bool | ||
}).isRequired | ||
}; | ||
@@ -52,0 +51,0 @@ /* |
{ | ||
"name": "@qlean/york-web", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"description": "", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "d8cf1d7d9a6c203dce7a1531ab8d3a51223b4f8e" | ||
"gitHead": "4fe21d57cf0e054b32c94e03a15c7b9d925e45a6" | ||
} |
@@ -73,3 +73,2 @@ import React from 'react' | ||
content: { tabs, regions, profile }, | ||
hideTabs, | ||
}) { | ||
@@ -92,3 +91,3 @@ const tab = tabs.find(({ name }) => name === defaultTab) | ||
</Link> | ||
{isNavigationAvailable && !hideTabs && ( | ||
{isNavigationAvailable && tabs.length > 1 && ( | ||
<> | ||
@@ -95,0 +94,0 @@ <Separator width={3} /> |
@@ -103,3 +103,2 @@ import React, { useState, useContext } from 'react' | ||
content: { tabs, regions, profile }, | ||
hideTabs, | ||
}) { | ||
@@ -132,3 +131,3 @@ const analyticsContext = useContext(AnalyticsContext) | ||
</View> | ||
{!hideTabs && ( | ||
{tabs.length > 1 && ( | ||
<> | ||
@@ -135,0 +134,0 @@ <StyledTabsContainer justifyContent="center"> |
@@ -14,3 +14,5 @@ import PropTypes from 'prop-types' | ||
export const componentsShape = PropTypes.objectOf(PropTypes.elementType.isRequired) | ||
export const componentsShape = PropTypes.objectOf( | ||
PropTypes.elementType.isRequired, | ||
) | ||
@@ -22,3 +24,3 @@ export const headerPropTypes = { | ||
isPlusSubscriber: PropTypes.bool.isRequired, | ||
defaultTab: PropTypes.string, | ||
defaultTab: PropTypes.string.isRequired, | ||
selectedLevelOneItem: PropTypes.string, | ||
@@ -36,3 +38,2 @@ selectedLevelTwoItem: PropTypes.string, | ||
}).isRequired, | ||
hideTabs: PropTypes.bool, | ||
} | ||
@@ -39,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2352189
11383