Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Nov 18, 2024
1 parent e7380a1 commit b6a14b8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useEffect, useState } from 'react';
import type { ITransaction } from '../TransactionsProvider/TransactionsProvider';

export const AgentsList: FC = () => {
const [innerData, setInnerData] = useState([]);
const [innerData, setInnerData] = useState<any[]>([]);
const { data } = useGetAgents();
const { account, sign } = useAccount();
const { activeNetwork } = useNetwork();
Expand Down Expand Up @@ -50,12 +50,12 @@ export const AgentsList: FC = () => {

const data = await Promise.all(promises);

console.log({ data });
setInnerData(data);
};

useEffect(() => {
const tx = getTransactions('ADDAGENT');
// eslint-disable-next-line @typescript-eslint/no-floating-promises
initInnerData(tx);
}, [transactions]);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client';
import { useNetwork } from '@/hooks/networks';
import { isPaused } from '@/services/isPaused';
import { paused } from '@/services/paused';
import type { FC, PropsWithChildren } from 'react';
import { createContext, useEffect, useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { AgentsList } from '@/components/AgentsList/AgentsList';
import { InitTokenForm } from '@/components/InitTokenForm/InitTokenForm';
import { SetComplianceForm } from '@/components/SetComplianceForm/SetComplianceForm';
import { SideBarBreadcrumbs } from '@/components/SideBarBreadcrumbs/SideBarBreadcrumbs';
import { useAsset } from '@/hooks/asset';
import { MonoAdd, MonoPause, MonoPlayArrow } from '@kadena/kode-icons';
import { MonoAdd } from '@kadena/kode-icons';
import { Button, Stack } from '@kadena/kode-ui';
import { SideBarBreadcrumbsItem, useLayout } from '@kadena/kode-ui/patterns';
import { useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface ITransaction {
type: string;
data: Record<string, string>;
listener?: Promise<void | ICommandResult>;
result: any;
result?: any;
}

export interface ITransactionsContext {
Expand Down
1 change: 0 additions & 1 deletion packages/apps/rwa-demo/src/services/paused.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { IWalletAccount } from '@/components/AccountProvider/utils';
import type { INetwork } from '@/components/NetworkProvider/NetworkProvider';
import { ADMIN } from '@/constants';
import { getClient } from '@/utils/client';
Expand Down

0 comments on commit b6a14b8

Please sign in to comment.