Skip to content

Commit

Permalink
fix: dependencies for build
Browse files Browse the repository at this point in the history
* Remove the dependencies for bootstrap to solve the
build issue.
* Change package name to reflect namespace.
  • Loading branch information
[email protected] authored and [email protected] committed Jul 23, 2024
1 parent 2399515 commit 9e91340
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 25 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edx/frontend-component-header",
"version": "1.0.0-semantically-released",
"name": "@nauedu/frontend-component-header",
"version": "1.0.0",
"description": "The standard header for Open edX",
"main": "dist/index.js",
"publishConfig": {
Expand All @@ -24,23 +24,28 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/edx/frontend-component-header.git"
"url": "git+https://github.com/fccn/frontend-component-header-nau.git"
},
"author": "edX",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/edx/frontend-component-header/issues"
"url": "https://github.com/fccn/frontend-component-header-nau/issues"
},
"homepage": "https://github.com/edx/frontend-component-header#readme",
"homepage": "https://github.com/fccn/frontend-component-header-nau#readme",
"devDependencies": {
"@edx/brand": "npm:@edx/[email protected]",
"@edx/frontend-build": "9.1.1",
"@edx/frontend-platform": "1.15.1",
"@edx/paragon": "19.6.0",
"@testing-library/dom": "7.31.2",
"@testing-library/jest-dom": "5.16.2",
"@testing-library/react": "10.4.9",
"codecov": "3.8.3",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6",
"husky": "7.0.4",
"jest": "27.5.0",
"jest-chain": "1.1.5",
"prop-types": "15.8.1",
"react": "16.14.0",
"react-dom": "16.14.0",
Expand All @@ -49,22 +54,17 @@
"react-test-renderer": "16.14.0",
"reactifex": "1.1.1",
"redux": "4.1.2",
"redux-saga": "1.1.3",
"@testing-library/dom": "7.31.2",
"@testing-library/jest-dom": "5.16.2",
"jest": "27.5.0",
"jest-chain": "1.1.5",
"@testing-library/react": "10.4.9"
"redux-saga": "1.1.3"
},
"dependencies": {
"babel-polyfill": "6.26.0",
"react-responsive": "8.2.0",
"react-transition-group": "4.4.2",
"@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-brands-svg-icons": "5.15.4",
"@fortawesome/free-regular-svg-icons": "5.15.4",
"@fortawesome/free-solid-svg-icons": "5.15.4",
"@fortawesome/react-fontawesome": "^0.1.14"
"@fortawesome/react-fontawesome": "^0.1.14",
"babel-polyfill": "6.26.0",
"react-responsive": "8.2.0",
"react-transition-group": "4.4.2"
},
"peerDependencies": {
"@edx/frontend-platform": "^1.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/learning-header/LearningHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LinkedLogo.propTypes = {
};

// this feature flag is not included on the frontend-platform, we have to get it directly from ENV
const enabledOrgLogo = process.env.ENABLED_ORG_LOGO || false;
const enabledOrgLogo = !!process.env.ENABLED_ORG_LOGO || false;

function LearningHeader({
courseOrg, courseTitle, intl, showUserDropdown,
Expand Down
7 changes: 2 additions & 5 deletions src/learning-header/_header.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
@import "../../node_modules/bootstrap/scss/bootstrap-grid";
@import "../../node_modules/bootstrap/scss/mixins/breakpoints";

.logo {
img {
@include media-breakpoint-down(sm) {
@media (max-width: 576px) {
max-width: 85% !important;
}
}
}
}

0 comments on commit 9e91340

Please sign in to comment.