From b6a14b878ce6714db95f95ac6cd0301748c9aeb8 Mon Sep 17 00:00:00 2001 From: Steven Straatemans Date: Mon, 18 Nov 2024 21:57:06 +0100 Subject: [PATCH] fix build --- .../apps/rwa-demo/src/components/AgentsList/AgentsList.tsx | 4 ++-- .../rwa-demo/src/components/AssetProvider/AssetProvider.tsx | 1 - .../apps/rwa-demo/src/components/HomePage/OwnerRootPage.tsx | 3 +-- .../components/TransactionsProvider/TransactionsProvider.tsx | 2 +- packages/apps/rwa-demo/src/services/paused.ts | 1 - 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/apps/rwa-demo/src/components/AgentsList/AgentsList.tsx b/packages/apps/rwa-demo/src/components/AgentsList/AgentsList.tsx index fa2db173a7..9d8fd8ebae 100644 --- a/packages/apps/rwa-demo/src/components/AgentsList/AgentsList.tsx +++ b/packages/apps/rwa-demo/src/components/AgentsList/AgentsList.tsx @@ -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([]); const { data } = useGetAgents(); const { account, sign } = useAccount(); const { activeNetwork } = useNetwork(); @@ -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]); diff --git a/packages/apps/rwa-demo/src/components/AssetProvider/AssetProvider.tsx b/packages/apps/rwa-demo/src/components/AssetProvider/AssetProvider.tsx index 01fd988f87..6db362792e 100644 --- a/packages/apps/rwa-demo/src/components/AssetProvider/AssetProvider.tsx +++ b/packages/apps/rwa-demo/src/components/AssetProvider/AssetProvider.tsx @@ -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'; diff --git a/packages/apps/rwa-demo/src/components/HomePage/OwnerRootPage.tsx b/packages/apps/rwa-demo/src/components/HomePage/OwnerRootPage.tsx index 5d93af90da..6c56333da9 100644 --- a/packages/apps/rwa-demo/src/components/HomePage/OwnerRootPage.tsx +++ b/packages/apps/rwa-demo/src/components/HomePage/OwnerRootPage.tsx @@ -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'; diff --git a/packages/apps/rwa-demo/src/components/TransactionsProvider/TransactionsProvider.tsx b/packages/apps/rwa-demo/src/components/TransactionsProvider/TransactionsProvider.tsx index 8fb52b7978..d810ce9a41 100644 --- a/packages/apps/rwa-demo/src/components/TransactionsProvider/TransactionsProvider.tsx +++ b/packages/apps/rwa-demo/src/components/TransactionsProvider/TransactionsProvider.tsx @@ -10,7 +10,7 @@ export interface ITransaction { type: string; data: Record; listener?: Promise; - result: any; + result?: any; } export interface ITransactionsContext { diff --git a/packages/apps/rwa-demo/src/services/paused.ts b/packages/apps/rwa-demo/src/services/paused.ts index 1fc7bccdc1..86aaf7b508 100644 --- a/packages/apps/rwa-demo/src/services/paused.ts +++ b/packages/apps/rwa-demo/src/services/paused.ts @@ -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';