Skip to content

Commit

Permalink
final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Oct 1, 2024
1 parent f2cf271 commit b9ad926
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/_services/buttonsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const getFieldPresetsButtons = (field: Field): Button[] => {
];
};

export const getDepositPresetsButtons = (deposit: Deposit, token: TokenInfo): any[] => {
export const getDepositPresetsButtons = (deposit: Deposit, token: TokenInfo): Button[] => {
if (!deposit) {
return [];
}
Expand Down
6 changes: 3 additions & 3 deletions app/my-strategies/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Spinner, Table } from 'flowbite-react';
import { formatTimestampSecondsAsLocal } from '../_services/dates';
import { useRouter } from 'next/navigation';
import { TokenAndBalance } from '../_components/TokenAndBalance';
import { Order } from '../types';
import { Input, Order, Output } from '../types';

export default function MyStrategies() {
const router = useRouter();
Expand Down Expand Up @@ -58,14 +58,14 @@ export default function MyStrategies() {
</Table.Cell>
<Table.Cell>
<div className="flex gap-x-2">
{order.inputs.map((input: any, i: number) => (
{order.inputs.map((input: Input, i: number) => (
<TokenAndBalance input={input} key={i} />
))}
</div>
</Table.Cell>
<Table.Cell>
<div className="flex gap-x-2">
{order.outputs.map((output: any, i: number) => (
{order.outputs.map((output: Output, i: number) => (
<TokenAndBalance input={output} key={i} />
))}
</div>
Expand Down
10 changes: 1 addition & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,7 @@ export default [
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'react/prop-types': 'off',
'react/no-unknown-property': ['error', { ignore: ['tw'] }],
// Disabled for PRs to be merged
// 'react/jsx-key': 'off',
// '@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off'
// '@typescript-eslint/no-empty-object-type': 'off',
// 'no-case-declarations': 'off',
// 'react/no-unescaped-entities': 'off',
// 'no-unsafe-optional-chaining': 'off',
'react/no-unknown-property': ['error', { ignore: ['tw'] }]
}
}
];

0 comments on commit b9ad926

Please sign in to comment.