From 702b97ffbece80944a7dc950fbc26cf456dbfd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Gro=C3=9F?= Date: Thu, 16 Nov 2023 00:34:44 +0100 Subject: [PATCH] Fixed search page and added linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Groß --- .github/dependabot.yml | 12 ++++++------ .github/workflows/pr-tests.yml | 16 ++++++++-------- components/ManageColumn.tsx | 4 ++-- components/cocktails/CocktailRecipeForm.tsx | 4 ++-- components/garnishes/GarnishForm.tsx | 2 +- components/glasses/GlassForm.tsx | 2 +- components/ingredients/IngredientForm.tsx | 2 +- components/layout/AuthBoundary/index.tsx | 2 +- components/modals/CocktailDetailModal.tsx | 2 +- components/modals/SearchModal.tsx | 2 +- .../[workspaceId]/manage/calculations/[id].tsx | 2 +- pages/workspaces/[workspaceId]/manage/index.tsx | 8 ++++---- .../[workspaceId]/manage/settings/index.tsx | 6 +++--- yarn.lock | 4 ++-- 14 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 667fc31a..5f23a8b2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,11 +5,11 @@ version: 2 updates: - - package-ecosystem: "docker" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: 'docker' # See documentation for possible values + directory: '/' # Location of package manifests schedule: - interval: "weekly" - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + interval: 'weekly' + - package-ecosystem: 'npm' # See documentation for possible values + directory: '/' # Location of package manifests schedule: - interval: "weekly" + interval: 'weekly' diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 381cdc22..9ec11d67 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -8,40 +8,40 @@ jobs: runs-on: ubuntu-latest steps: - - name: "Checkout" + - name: 'Checkout' uses: actions/checkout@v3 with: fetch-depth: 0 - - name: "Node.js setup" + - name: 'Node.js setup' uses: actions/setup-node@v3 with: node-version: 21 - - name: "Install dependencies" + - name: 'Install dependencies' run: yarn install - - name: "Run Prettier" + - name: 'Run Prettier' run: yarn format:check Build: runs-on: ubuntu-latest steps: - - name: "Checkout" + - name: 'Checkout' uses: actions/checkout@v3 with: fetch-depth: 0 - - name: "Node.js setup" + - name: 'Node.js setup' uses: actions/setup-node@v3 with: node-version: 21 - - name: "Install dependencies" + - name: 'Install dependencies' run: yarn install - - name: "Build" + - name: 'Build' run: | yarn run build diff --git a/components/ManageColumn.tsx b/components/ManageColumn.tsx index bbd40972..8bb91f90 100644 --- a/components/ManageColumn.tsx +++ b/components/ManageColumn.tsx @@ -28,11 +28,11 @@ export function ManageColumn(props: ManageColumnProps) { {userContext.isUserPermitted(props.editRole ?? Role.MANAGER) ? (
-
Edit
+
Edit
diff --git a/components/modals/CocktailDetailModal.tsx b/components/modals/CocktailDetailModal.tsx index 1b9a9fe2..9de1e8fe 100644 --- a/components/modals/CocktailDetailModal.tsx +++ b/components/modals/CocktailDetailModal.tsx @@ -28,7 +28,7 @@ export function CocktailDetailModal(props: CocktailDetailModalProps) { {userContext.isUserPermitted(Role.MANAGER) && (
modalContext.closeModal()} > diff --git a/components/modals/SearchModal.tsx b/components/modals/SearchModal.tsx index 9cced0c0..3bfe1cb9 100644 --- a/components/modals/SearchModal.tsx +++ b/components/modals/SearchModal.tsx @@ -108,7 +108,7 @@ export function SearchModal(props: SearchModalProps) { {showRecipe ? : <>}
{cocktail.name}{' '} - {props.showRecipe && !showRecipe && props.onCocktailSelectedObject != undefined && ( + {!showRecipe && props.onCocktailSelectedObject != undefined && (