Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/next demo build #84

Merged
merged 9 commits into from
Oct 7, 2024
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions demo/package-lock.json

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

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions next-demo/package-lock.json

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

2 changes: 1 addition & 1 deletion next-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jasonrundell/react-mega-menu",
"version": "2.2.0",
"version": "2.2.1",
"author": "jasonrundell <[email protected]>",
"main": "dist/index.es.js",
"module": "dist/index.es.js",
Expand Down
5 changes: 1 addition & 4 deletions src/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading