Skip to content

Commit

Permalink
Changes by coderabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Mar 26, 2024
1 parent cf26281 commit 823444e
Show file tree
Hide file tree
Showing 34 changed files with 104 additions and 2,005 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run build for website and admin

on:
push:

jobs:
admin-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- run: |
cd admin
npm install
npm run build
website-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- run: |
cd website
npm install
npm run build
35 changes: 0 additions & 35 deletions admin/components/Checkboxes/CheckboxFive.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions admin/components/Checkboxes/CheckboxFour.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions admin/components/Checkboxes/CheckboxOne.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions admin/components/Checkboxes/CheckboxThree.tsx

This file was deleted.

50 changes: 0 additions & 50 deletions admin/components/Checkboxes/CheckboxTwo.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion admin/components/Dashboard/E-commerce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ const ECommerce = () => {

menus.map((menu) => {
count = count + menu.dishes.length;
setDishesCount(count);
});

setDishesCount(count);
} catch (error) {
console.error("Error while counting dishes : ", error);
} finally {
Expand Down
Loading

0 comments on commit 823444e

Please sign in to comment.