@mjhls/mjh-framework 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6241,8 +6241,9 @@ var Search = function Search(_ref) {
6241
6241
  var _ref$placeholder = _ref.placeholder,
6242
6242
  placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
6243
6243
  _ref$btnText = _ref.btnText,
6244
- btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText,
6245
- router$$1 = _ref.router;
6244
+ btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
6245
+
6246
+ var router$$1 = router.useRouter();
6246
6247
 
6247
6248
  var _useState = React.useState(''),
6248
6249
  _useState2 = slicedToArray(_useState, 2),
@@ -6277,8 +6278,6 @@ var Search = function Search(_ref) {
6277
6278
  );
6278
6279
  };
6279
6280
 
6280
- var Search$1 = router.withRouter(Search);
6281
-
6282
6281
  var NavDvm = function NavDvm(props) {
6283
6282
  var logo = props.logo,
6284
6283
  mobileLogo = props.mobileLogo,
@@ -6373,7 +6372,7 @@ var NavDvm = function NavDvm(props) {
6373
6372
  }
6374
6373
  })
6375
6374
  ),
6376
- React__default.createElement(Search$1, null)
6375
+ React__default.createElement(Search, null)
6377
6376
  )
6378
6377
  )
6379
6378
  ),
@@ -10114,7 +10113,15 @@ var YouTubePlayer$1 = function YouTubePlayer(_ref) {
10114
10113
  var url = _ref.url;
10115
10114
 
10116
10115
  var id = getYoutubeId(url);
10117
- return React__default.createElement(YouTube, { videoId: id, opts: { width: '100%' } });
10116
+
10117
+ var opts = {
10118
+ width: '100%',
10119
+ playerVars: {
10120
+ rel: 0
10121
+ }
10122
+ };
10123
+
10124
+ return React__default.createElement(YouTube, { videoId: id, opts: opts });
10118
10125
  };
10119
10126
 
10120
10127
  /*
@@ -11180,5 +11187,5 @@ exports.AD300x250 = AD300x250;
11180
11187
  exports.AD300x250x600 = AD300x250x600;
11181
11188
  exports.AD728x90 = AD728x90;
11182
11189
  exports.getSerializers = getSerializers$1;
11183
- exports.Search = Search$1;
11190
+ exports.Search = Search;
11184
11191
  //# sourceMappingURL=index.js.map