diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7d890c6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build + +on: + pull_request: + branches: + - main + +jobs: + build-next-demo: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies and run build + run: | + npm ci + npm run build diff --git a/demo/package-lock.json b/demo/package-lock.json index c6e4ad9..ec5c053 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@eslint/js": "^9.9.0", - "@jasonrundell/react-mega-menu": "^2.0.17", + "@jasonrundell/react-mega-menu": "^2.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.1", @@ -1051,9 +1051,9 @@ } }, "node_modules/@jasonrundell/react-mega-menu": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@jasonrundell/react-mega-menu/-/react-mega-menu-2.0.17.tgz", - "integrity": "sha512-ABMPzbBZlKv4RczGYgQ55HtTUngD7AhH8D+H6uGdwYa3FJohzeJMNeOApU7qAUWfSLioWhwgrVBfbMoXaHfWaA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@jasonrundell/react-mega-menu/-/react-mega-menu-2.2.0.tgz", + "integrity": "sha512-RCC2/kZQjXhmElshxuJvkiQgL5Tg5gVqF8N7fLADFHu9fYYXyYiWbQVuLObFxKPcWKefAktS0R39hmZ3gvoOjg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/demo/package.json b/demo/package.json index be8d505..4b24af1 100644 --- a/demo/package.json +++ b/demo/package.json @@ -18,7 +18,7 @@ }, "devDependencies": { "@eslint/js": "^9.9.0", - "@jasonrundell/react-mega-menu": "^2.0.17", + "@jasonrundell/react-mega-menu": "^2.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.1", diff --git a/next-demo/package-lock.json b/next-demo/package-lock.json index caadaf9..9f04e02 100644 --- a/next-demo/package-lock.json +++ b/next-demo/package-lock.json @@ -8,7 +8,7 @@ "name": "next-demo", "version": "0.1.0", "dependencies": { - "@jasonrundell/react-mega-menu": "^2.0.17", + "@jasonrundell/react-mega-menu": "^2.2.0", "next": "14.2.11", "react": "^18", "react-dom": "^18" @@ -584,9 +584,9 @@ } }, "node_modules/@jasonrundell/react-mega-menu": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@jasonrundell/react-mega-menu/-/react-mega-menu-2.0.17.tgz", - "integrity": "sha512-ABMPzbBZlKv4RczGYgQ55HtTUngD7AhH8D+H6uGdwYa3FJohzeJMNeOApU7qAUWfSLioWhwgrVBfbMoXaHfWaA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@jasonrundell/react-mega-menu/-/react-mega-menu-2.2.0.tgz", + "integrity": "sha512-RCC2/kZQjXhmElshxuJvkiQgL5Tg5gVqF8N7fLADFHu9fYYXyYiWbQVuLObFxKPcWKefAktS0R39hmZ3gvoOjg==", "license": "MIT", "dependencies": { "uuid": "^9.0.1" diff --git a/next-demo/package.json b/next-demo/package.json index c50baf0..c3d45c1 100644 --- a/next-demo/package.json +++ b/next-demo/package.json @@ -9,7 +9,7 @@ "lint": "next lint" }, "dependencies": { - "@jasonrundell/react-mega-menu": "^2.0.17", + "@jasonrundell/react-mega-menu": "^2.2.0", "next": "14.2.11", "react": "^18", "react-dom": "^18" diff --git a/package-lock.json b/package-lock.json index c3775ad..7a50728 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jasonrundell/react-mega-menu", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jasonrundell/react-mega-menu", - "version": "2.2.0", + "version": "2.2.1", "license": "MIT", "dependencies": { "uuid": "^9.0.1" diff --git a/package.json b/package.json index 41755c7..ec1e4d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jasonrundell/react-mega-menu", - "version": "2.2.0", + "version": "2.2.1", "author": "jasonrundell ", "main": "dist/index.es.js", "module": "dist/index.es.js", diff --git a/src/Menu.jsx b/src/Menu.jsx index 8307eed..5aa0aec 100644 --- a/src/Menu.jsx +++ b/src/Menu.jsx @@ -15,10 +15,7 @@ import { renderMegaMenuItem, renderSubMenuItem } from './helpers/menu' -import { - MENU_ITEM_TYPE_LINK, - MENU_ITEM_TYPE_MEGA -} from './config/menuItemTypes' +import { MENU_ITEM_TYPE_MEGA } from './config/menuItemTypes' // Components import TopBar from './components/TopBar'