From a46c19d2782961003497b82ad2220e23f4f6e735 Mon Sep 17 00:00:00 2001 From: jaybuidl Date: Fri, 20 Dec 2024 17:14:53 +0000 Subject: [PATCH] fix: minor fixes to keep coderabbit happy --- scripts/cancel-all-netlify-builds.sh | 7 +++---- .../src/app/(main)/ruler/SelectArbitrable.tsx | 2 +- web/package.json | 2 +- .../Home/TopJurors/Header/MobileHeader.tsx | 6 +++--- yarn.lock | 21 ++----------------- 5 files changed, 10 insertions(+), 28 deletions(-) diff --git a/scripts/cancel-all-netlify-builds.sh b/scripts/cancel-all-netlify-builds.sh index b0f18efac..d5ff73751 100755 --- a/scripts/cancel-all-netlify-builds.sh +++ b/scripts/cancel-all-netlify-builds.sh @@ -8,11 +8,10 @@ function cancelSiteDeploy() #siteId do local name=$(jq -r .name <<< $build) local branch=$(jq -r .branch <<< $build) - if ! [[ "$branch" =~ ^dependabot/ || "$branch" =~ ^renovate/ ]]; then - continue; + if [[ "$branch" =~ ^dependabot/ || "$branch" =~ ^renovate/ ]]; then + echo "Cancelling build for $name $branch" + netlify api cancelSiteDeploy -d '{ "deploy_id": "'$(jq -r .id <<< $build)'"}' > /dev/null fi - echo "Cancelling build for $name $branch" - netlify api cancelSiteDeploy -d '{ "deploy_id": "'$(jq -r .id <<< $build)'"}' > /dev/null done } diff --git a/web-devtools/src/app/(main)/ruler/SelectArbitrable.tsx b/web-devtools/src/app/(main)/ruler/SelectArbitrable.tsx index 6409ee8ea..75fd74069 100644 --- a/web-devtools/src/app/(main)/ruler/SelectArbitrable.tsx +++ b/web-devtools/src/app/(main)/ruler/SelectArbitrable.tsx @@ -135,7 +135,7 @@ const SelectArbitrable: React.FC = () => { const [[chainId, address]] = Object.entries(klerosCoreAddress); if (chainId !== DEFAULT_CHAIN.toString()) { - throw new Error(`Kleros Core is not deployed on chain ${chainId}`); + console.error(`Kleros Core is not deployed on chain ${chainId}`); } return ( diff --git a/web/package.json b/web/package.json index 426b2a9ac..80f81b0cf 100644 --- a/web/package.json +++ b/web/package.json @@ -78,7 +78,7 @@ }, "dependencies": { "@cyntler/react-doc-viewer": "^1.17.0", - "@kleros/kleros-app": "^2.0.1", + "@kleros/kleros-app": "^2.0.2", "@kleros/kleros-sdk": "workspace:^", "@kleros/kleros-v2-contracts": "workspace:^", "@kleros/ui-components-library": "^2.19.0", diff --git a/web/src/pages/Home/TopJurors/Header/MobileHeader.tsx b/web/src/pages/Home/TopJurors/Header/MobileHeader.tsx index f2ad48c0a..bc84c71d9 100644 --- a/web/src/pages/Home/TopJurors/Header/MobileHeader.tsx +++ b/web/src/pages/Home/TopJurors/Header/MobileHeader.tsx @@ -1,10 +1,10 @@ import React from "react"; import styled, { css } from "styled-components"; -import { landscapeStyle } from "styles/landscapeStyle"; - import { useToggle } from "react-use"; +import { landscapeStyle } from "styles/landscapeStyle"; + import HowItWorks from "components/HowItWorks"; import JurorLevels from "components/Popup/MiniGuides/JurorLevels"; @@ -14,7 +14,7 @@ const Container = styled.div` width: 100%; background-color: ${({ theme }) => theme.lightBlue}; padding: 16px; - border 1px solid ${({ theme }) => theme.stroke}; + border: 1px solid ${({ theme }) => theme.stroke}; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom: none; diff --git a/yarn.lock b/yarn.lock index 2853465e1..2bae56d48 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5370,24 +5370,7 @@ __metadata: languageName: node linkType: hard -"@kleros/kleros-app@npm:^2.0.1": - version: 2.0.1 - resolution: "@kleros/kleros-app@npm:2.0.1" - dependencies: - jose: "npm:^5.9.6" - peerDependencies: - "@tanstack/react-query": ^5.59.20 - graphql: ^16.9.0 - graphql-request: ^7.1.2 - react: ^18.3.1 - react-dom: ^18.3.1 - viem: ^2.21.42 - wagmi: ^2.13.0 - checksum: 10/a193e49fe82738eaa7df3b82857fd74a5407e6ed166edeacd2352bbd149a49ea3cfde98f130fe0473f006761260cbf2475bc4fa138ad05650540eec43b9755d1 - languageName: node - linkType: hard - -"@kleros/kleros-app@workspace:kleros-app": +"@kleros/kleros-app@npm:^2.0.2, @kleros/kleros-app@workspace:kleros-app": version: 0.0.0-use.local resolution: "@kleros/kleros-app@workspace:kleros-app" dependencies: @@ -5621,7 +5604,7 @@ __metadata: "@eslint/js": "npm:^9.15.0" "@graphql-codegen/cli": "npm:^5.0.3" "@graphql-codegen/client-preset": "npm:^4.5.1" - "@kleros/kleros-app": "npm:^2.0.1" + "@kleros/kleros-app": "npm:^2.0.2" "@kleros/kleros-sdk": "workspace:^" "@kleros/kleros-v2-contracts": "workspace:^" "@kleros/kleros-v2-eslint-config": "workspace:^"