Skip to content

Commit baf28df

Browse files
author
Martin Krulis
committed
Fixing show/hide menu button for the most narrow screens.
1 parent f7182ba commit baf28df

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"react-intl": "2.4.0",
7979
"react-motion": "^0.5.2",
8080
"react-redux": "^7.1.0",
81-
"react-responsive": "^7.0.0",
81+
"react-responsive": "^8.0.1",
8282
"react-router": "^5.0.1",
8383
"react-router-bootstrap": "^0.25.0",
8484
"react-router-dom": "^5.0.1",

src/components/widgets/Header/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ class Header extends Component {
5656

5757
<div className="navbar navbar-static-top" role="navigation">
5858
<ClientOnly>
59-
<MediaQuery maxDeviceWidth={767} values={{ deviceWidth: 1368 }}>
59+
<MediaQuery maxWidth={767}>
6060
<a href="#" className="sidebar-toggle" role="button" onClick={this.toggleSidebarVisibility}>
6161
<span className="sr-only">
6262
<FormattedMessage id="app.header.toggleSidebar" defaultMessage="Show/hide sidebar" />
6363
</span>
6464
</a>
6565
</MediaQuery>
66-
<MediaQuery minDeviceWidth={768} values={{ deviceWidth: 1368 }}>
66+
<MediaQuery minWidth={768}>
6767
<a
6868
href="#"
6969
className="sidebar-toggle"

yarn.lock

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,6 +3067,7 @@ css-loader@^3.1.0:
30673067
css-mediaquery@^0.1.2:
30683068
version "0.1.2"
30693069
resolved "https://registry.yarnpkg.com/css-mediaquery/-/css-mediaquery-0.1.2.tgz#6a2c37344928618631c54bd33cedd301da18bea0"
3070+
integrity sha1-aiw3NEkoYYYxxUvTPO3TAdoYvqA=
30703071

30713072
css-modules-require-hook@^4.2.3:
30723073
version "4.2.3"
@@ -5242,8 +5243,9 @@ humps@^2.0.1:
52425243
integrity sha1-3QLqYIG9BWjcXQcxhEY5V7qe+ao=
52435244

52445245
hyphenate-style-name@^1.0.0:
5245-
version "1.0.2"
5246-
resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz#31160a36930adaf1fc04c6074f7eb41465d4ec4b"
5246+
version "1.0.3"
5247+
resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.3.tgz#097bb7fa0b8f1a9cf0bd5c734cf95899981a9b48"
5248+
integrity sha512-EcuixamT82oplpoJ2XU4pDtKGWQ7b00CD9f1ug9IaQ3p1bkHMiKCZ9ut9QDI6qsa6cpUuB+A/I+zLtdNK4n2DQ==
52475249

52485250
52495251
version "0.4.13"
@@ -8150,11 +8152,16 @@ react-is@^16.6.0:
81508152
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
81518153
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
81528154

8153-
react-is@^16.7.0, react-is@^16.8.1, react-is@^16.9.0:
8155+
react-is@^16.7.0, react-is@^16.9.0:
81548156
version "16.9.0"
81558157
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.9.0.tgz#21ca9561399aad0ff1a7701c01683e8ca981edcb"
81568158
integrity sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw==
81578159

8160+
react-is@^16.8.1:
8161+
version "16.10.2"
8162+
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.10.2.tgz#984120fd4d16800e9a738208ab1fba422d23b5ab"
8163+
integrity sha512-INBT1QEgtcCCgvccr5/86CfD71fw9EPmDxgiJX4I2Ddr6ZsV6iFXsuby+qWJPtmNuMY0zByTsG4468P7nHuNWA==
8164+
81588165
react-lifecycles-compat@^3.0.4:
81598166
version "3.0.4"
81608167
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
@@ -8196,14 +8203,15 @@ react-redux@^7.1.0:
81968203
prop-types "^15.7.2"
81978204
react-is "^16.9.0"
81988205

8199-
react-responsive@^7.0.0:
8200-
version "7.0.0"
8201-
resolved "https://registry.yarnpkg.com/react-responsive/-/react-responsive-7.0.0.tgz#0abde0ccbb50e5e8407e3d61dd4696447e7ebd3c"
8202-
integrity sha512-RukaKD+UI/MIR+P8eUgVGURfiCafRvvcVnq41scT0eEQWHwDGliH/OAlrwIr1oyz8aKLGroZa+U8mTZV5ihPfA==
8206+
react-responsive@^8.0.1:
8207+
version "8.0.1"
8208+
resolved "https://registry.yarnpkg.com/react-responsive/-/react-responsive-8.0.1.tgz#38022665dfb759227880f4221c475438a06a1771"
8209+
integrity sha512-caseFCvFFV4QW+JOl7inzDme+avoX4r7GPpQJ+04NCzIgbroV3BU0noPgHGxVCEFKm9IsgcKOBAf+6MqIUeQIg==
82038210
dependencies:
82048211
hyphenate-style-name "^1.0.0"
82058212
matchmediaquery "^0.3.0"
82068213
prop-types "^15.6.1"
8214+
shallow-equal "^1.1.0"
82078215

82088216
react-router-bootstrap@^0.25.0:
82098217
version "0.25.0"
@@ -9039,6 +9047,11 @@ sha.js@^2.4.0, sha.js@^2.4.8:
90399047
inherits "^2.0.1"
90409048
safe-buffer "^5.0.1"
90419049

9050+
shallow-equal@^1.1.0:
9051+
version "1.2.0"
9052+
resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.2.0.tgz#fd828d2029ff4e19569db7e19e535e94e2d1f5cc"
9053+
integrity sha512-Z21pVxR4cXsfwpMKMhCEIO1PCi5sp7KEp+CmOpBQ+E8GpHwKOw2sEzk7sgblM3d/j4z4gakoWEoPcjK0VJQogA==
9054+
90429055
shallowequal@^1.0.1:
90439056
version "1.0.2"
90449057
resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.0.2.tgz#1561dbdefb8c01408100319085764da3fcf83f8f"

0 commit comments

Comments
 (0)