@epec-fcfm-uchile/frontend-component-header 1.0.64 → 1.0.66
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/Logo.js +5 -5
- package/dist/Logo.js.map +1 -1
- package/dist/assets/logo_cjlandes.jpg +0 -0
- package/package.json +1 -1
package/dist/Logo.js
CHANGED
|
@@ -4,7 +4,7 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import LogoCja from './assets/
|
|
7
|
+
import LogoCja from './assets/logo_cjlandes.jpg';
|
|
8
8
|
var Logo = function Logo(_ref) {
|
|
9
9
|
var courseInfo = _ref.courseInfo,
|
|
10
10
|
href = _ref.href,
|
|
@@ -17,13 +17,13 @@ var Logo = function Logo(_ref) {
|
|
|
17
17
|
alt: alt
|
|
18
18
|
});
|
|
19
19
|
var logoCjaLosAndes = /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: "d-flex"
|
|
20
|
+
className: "d-flex align-items-center"
|
|
21
21
|
}, /*#__PURE__*/React.createElement("img", {
|
|
22
22
|
className: "d-block epec_brand_img",
|
|
23
23
|
src: src,
|
|
24
24
|
alt: alt
|
|
25
25
|
}), /*#__PURE__*/React.createElement("img", {
|
|
26
|
-
className: "d-block epec_brand_img",
|
|
26
|
+
className: "d-block epec_brand_img ml-2",
|
|
27
27
|
src: LogoCja,
|
|
28
28
|
alt: alt
|
|
29
29
|
}));
|
|
@@ -31,11 +31,11 @@ var Logo = function Logo(_ref) {
|
|
|
31
31
|
return /*#__PURE__*/React.createElement("a", _extends({
|
|
32
32
|
href: href,
|
|
33
33
|
className: "logo"
|
|
34
|
-
}, attributes), courseInfo.course_domain === 'cajalosandes.fcfmonline.cl' ? logoCjaLosAndes : logoImage);
|
|
34
|
+
}, attributes), courseInfo && courseInfo.course_domain === 'cajalosandes.fcfmonline.cl' ? logoCjaLosAndes : logoImage);
|
|
35
35
|
}
|
|
36
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
37
|
className: "logo"
|
|
38
|
-
}, courseInfo.course_domain === 'cajalosandes.fcfmonline.cl' ? logoCjaLosAndes : logoImage);
|
|
38
|
+
}, courseInfo && courseInfo.course_domain === 'cajalosandes.fcfmonline.cl' ? logoCjaLosAndes : logoImage);
|
|
39
39
|
};
|
|
40
40
|
export var logoDataShape = {
|
|
41
41
|
href: PropTypes.string.isRequired,
|
package/dist/Logo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.js","names":["React","PropTypes","LogoCja","Logo","_ref","courseInfo","href","src","alt","attributes","_objectWithoutProperties","_excluded","logoImage","createElement","className","logoCjaLosAndes","course_domain","user_is_admin","_extends","logoDataShape","string","isRequired","propTypes"],"sources":["../src/Logo.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport LogoCja from './assets/
|
|
1
|
+
{"version":3,"file":"Logo.js","names":["React","PropTypes","LogoCja","Logo","_ref","courseInfo","href","src","alt","attributes","_objectWithoutProperties","_excluded","logoImage","createElement","className","logoCjaLosAndes","course_domain","user_is_admin","_extends","logoDataShape","string","isRequired","propTypes"],"sources":["../src/Logo.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport LogoCja from './assets/logo_cjlandes.jpg';\n\nconst Logo = ({\n courseInfo,\n href,\n src,\n alt,\n ...attributes\n}) => {\n const logoImage = (\n <img className=\"d-block epec_brand_img\" src={src} alt={alt} />\n );\n const logoCjaLosAndes = (\n <div className='d-flex align-items-center'>\n <img className=\"d-block epec_brand_img\" src={src} alt={alt} />\n <img className=\"d-block epec_brand_img ml-2\" src={LogoCja} alt={alt} />\n </div>\n \n );\n if(courseInfo && (courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin)){\n return (\n <a href={href} className=\"logo\" {...attributes}>\n {(courseInfo && courseInfo.course_domain === 'cajalosandes.fcfmonline.cl')?logoCjaLosAndes:logoImage}\n </a>\n )\n }\n return (\n <div className=\"logo\" >\n {(courseInfo && courseInfo.course_domain === 'cajalosandes.fcfmonline.cl')?logoCjaLosAndes:logoImage}\n </div>\n )\n}\nexport const logoDataShape = {\n href: PropTypes.string.isRequired,\n src: PropTypes.string.isRequired,\n alt: PropTypes.string.isRequired,\n};\n\nLogo.propTypes = logoDataShape;\n\nexport default Logo;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,4BAA4B;AAEhD,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAMJ;EAAA,IALJC,UAAU,GAAAD,IAAA,CAAVC,UAAU;IACVC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,GAAG,GAAAH,IAAA,CAAHG,GAAG;IACHC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;IACAC,UAAU,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA;EAEb,IAAMC,SAAS,gBACbZ,KAAA,CAAAa,aAAA;IAAKC,SAAS,EAAC,wBAAwB;IAACP,GAAG,EAAEA,GAAI;IAACC,GAAG,EAAEA;EAAI,CAAE,CAC9D;EACD,IAAMO,eAAe,gBACnBf,KAAA,CAAAa,aAAA;IAAKC,SAAS,EAAC;EAA2B,gBACtCd,KAAA,CAAAa,aAAA;IAAKC,SAAS,EAAC,wBAAwB;IAACP,GAAG,EAAEA,GAAI;IAACC,GAAG,EAAEA;EAAI,CAAE,CAAC,eAC9DR,KAAA,CAAAa,aAAA;IAAKC,SAAS,EAAC,6BAA6B;IAACP,GAAG,EAAEL,OAAQ;IAACM,GAAG,EAAEA;EAA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