diff --git a/.github/workflows/operate.yml b/.github/workflows/operate.yml new file mode 100644 index 00000000..a77d4e1b --- /dev/null +++ b/.github/workflows/operate.yml @@ -0,0 +1,30 @@ +# TODO: figure out how to trigger workflow from vercel for nx + +name: Operate +on: + push: + branches: + - main + paths: + - 'apps/operate/**' + pull_request: + branches: + - main + paths: + - 'apps/operate/**' + +jobs: + build: + continue-on-error: False + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + - name: Install modules + run: yarn + - name: Run ESLint + run: yarn nx lint operate diff --git a/apps/operate/components/Agents.tsx b/apps/operate/components/Agents.tsx index 29a6101d..36835bf2 100644 --- a/apps/operate/components/Agents.tsx +++ b/apps/operate/components/Agents.tsx @@ -1,17 +1,11 @@ -import { - BulbFilled, - DownOutlined, - PlayCircleOutlined, - RightOutlined, - RobotOutlined, -} from '@ant-design/icons'; +import { BulbFilled, PlayCircleOutlined, RobotOutlined } from '@ant-design/icons'; import { Button, Card, Col, Row, Typography } from 'antd'; import Image from 'next/image'; import styled from 'styled-components'; import { BREAK_POINT, COLOR } from 'libs/ui-theme/src'; -const { Title, Paragraph, Text } = Typography; +const { Title, Paragraph } = Typography; const StyledMain = styled.main` display: flex; diff --git a/apps/operate/components/Contracts/hooks.ts b/apps/operate/components/Contracts/hooks.ts index 0db09263..4674e2f8 100644 --- a/apps/operate/components/Contracts/hooks.ts +++ b/apps/operate/components/Contracts/hooks.ts @@ -1,4 +1,3 @@ -import { ethers } from 'ethers'; import { useMemo } from 'react'; import { StakingContract } from 'types'; import { Abi, Address, formatEther } from 'viem';