Skip to content

Commit

Permalink
(operate) fix: builds failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Atatakai authored and Atatakai committed Aug 22, 2024
1 parent 8a5c48e commit f6a7f35
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 23 deletions.
4 changes: 3 additions & 1 deletion apps/operate/common-util/functions/frontend-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
notifyError,
} from '@autonolas/frontend-library';

import { RPC_URLS, SUPPORTED_CHAINS } from 'common-util/config/wagmi';
import { RPC_URLS } from 'libs/util-constants/src';

import { SUPPORTED_CHAINS } from 'common-util/config/wagmi';

export const getProvider = () => {
const provider = getProviderFn(SUPPORTED_CHAINS, RPC_URLS);
Expand Down
2 changes: 1 addition & 1 deletion apps/operate/components/Contracts/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const useStakingContractsList = () => {
stakeRequired,
availableOn: AVAILABLE_ON[item.account] || null,
};
});
}) as StakingContract[];
}
return [];
}, [
Expand Down
7 changes: 4 additions & 3 deletions apps/operate/components/Contracts/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { DownOutlined, RightOutlined } from '@ant-design/icons';
import { Button, Card, Flex, Table, TableColumnsType, Tag, Typography } from 'antd';
import { Button, Card, Flex, Table, Tag, Typography } from 'antd';
import { ColumnsType } from 'antd/es/table';
import Image from 'next/image';
import styled from 'styled-components';
import { StakingContract } from 'types';
Expand Down Expand Up @@ -43,11 +44,11 @@ const getAvailableOnData = (availableOn: StakingContract['availableOn']) => {
return { icon, text, href };
};

const columns: TableColumnsType<StakingContract> = [
const columns: ColumnsType<StakingContract> = [
{
title: 'Contract',
dataIndex: 'metadata',
key: 'metadata',
key: 'address',
render: (metadata) => <Text strong>{metadata.name || NA}</Text>,
},
{
Expand Down
4 changes: 2 additions & 2 deletions apps/operate/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type StakingContract = {
metadata: Metadata;
availableSlots: number;
maxSlots: number;
apy: number;
stakeRequired: number;
apy: string;
stakeRequired: string;
availableOn: 'pearl' | 'quickstart' | null;
};
36 changes: 20 additions & 16 deletions libs/ui-components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"resolveJsonModule": true,
"isolatedModules": true,
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"types": ["jest", "node", "react", "react-dom"],
"paths": {
"libs/*": ["libs/*"]
}
]
},
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "next-env.d.ts"],
"exclude": ["node_modules", "jest.config.js", "src/**/*.spec.ts", "src/**/*.test.ts"]
}

0 comments on commit f6a7f35

Please sign in to comment.