@epec-fcfm-uchile/frontend-component-header 1.0.7 → 1.0.8
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Dropdown } from '@openedx/paragon';
|
|
4
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
5
|
var LearningHeaderUserMenuItems = function LearningHeaderUserMenuItems(_ref) {
|
|
5
6
|
var items = _ref.items;
|
|
6
7
|
return items.map(function (item) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningHeaderUserMenuItems.js","names":["React","PropTypes","Dropdown","LearningHeaderUserMenuItems","_ref","items","map","item","createElement","Item","href","
|
|
1
|
+
{"version":3,"file":"LearningHeaderUserMenuItems.js","names":["React","PropTypes","Dropdown","FontAwesomeIcon","LearningHeaderUserMenuItems","_ref","items","map","item","createElement","Item","href","icon","size","message","learningHeaderUserMenuDataShape","arrayOf","shape","string","propTypes"],"sources":["../../src/learning-header/LearningHeaderUserMenuItems.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Dropdown } from '@openedx/paragon';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\n\nconst LearningHeaderUserMenuItems = ({ items }) => items.map((item) => (\n <Dropdown.Item href={item.href}>\n <FontAwesomeIcon icon={item.icon} size=\"lg\" /> {item.message}\n </Dropdown.Item>\n));\n\nexport const learningHeaderUserMenuDataShape = {\n items: PropTypes.arrayOf(PropTypes.shape({\n message: PropTypes.string,\n href: PropTypes.string,\n })),\n};\n\nLearningHeaderUserMenuItems.propTypes = learningHeaderUserMenuDataShape;\n\nexport default LearningHeaderUserMenuItems;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,SAASC,eAAe,QAAQ,gCAAgC;AAEhE,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAAC,IAAA;EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAOA,KAAK,CAACC,GAAG,CAAC,UAACC,IAAI;IAAA,oBAChER,KAAA,CAAAS,aAAA,CAACP,QAAQ,CAACQ,IAAI;MAACC,IAAI,EAAEH,IAAI,CAACG;IAAK,gBAC7BX,KAAA,CAAAS,aAAA,CAACN,eAAe;MAACS,IAAI,EAAEJ,IAAI,CAACI,IAAK;MAACC,IAAI,EAAC;IAAI,CAAE,CAAC,KAAC,EAACL,IAAI,CAACM,OACxC,CAAC;EAAA,CACjB,CAAC;AAAA;AAEF,OAAO,IAAMC,+BAA+B,GAAG;EAC7CT,KAAK,EAAEL,SAAS,CAACe,OAAO,CAACf,SAAS,CAACgB,KAAK,CAAC;IACvCH,OAAO,EAAEb,SAAS,CAACiB,MAAM;IACzBP,IAAI,EAAEV,SAAS,CAACiB;EAClB,CAAC,CAAC;AACJ,CAAC;AAEDd,2BAA2B,CAACe,SAAS,GAAGJ,+BAA+B;AAEvE,eAAeX,2BAA2B","ignoreList":[]}
|