diff --git a/forge.config.js b/forge.config.js deleted file mode 100644 index 612007d3e..000000000 --- a/forge.config.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports= { - "packagerConfig": { - "files": [ - ".env", // Include the .env file (ensure NODE_ENV is set to production) - "frontend/.next/**/*", // Include the .next folder, requires build to be run first - ] - } -} diff --git a/frontend/client/types.ts b/frontend/client/types.ts index 5d9cac6d7..ba58abfdb 100644 --- a/frontend/client/types.ts +++ b/frontend/client/types.ts @@ -1,3 +1,4 @@ +import { Address } from '@/types/Address'; import { Ledger, Chain, DeploymentStatus } from './enums'; export type ServiceHash = string; @@ -8,22 +9,22 @@ export type LedgerConfig = { chain: Chain; }; -export type Key = { - address: string; +export type ServiceKeys = { + address: Address; private_key: string; ledger: Chain; }; export type ChainData = { - instances?: string[]; + instances?: Address[]; token?: number; - multisig?: string; + multisig?: Address; }; export type Service = { name: string; hash: string; - keys: Key; + keys: ServiceKeys; readme?: string; ledger: LedgerConfig; chain_data: ChainData; @@ -98,6 +99,6 @@ export type DeleteServicesResponse = { export type AppInfo = { account: { - key: string; + key: Address; }; }; diff --git a/frontend/components/Layout/Navbar/Navbar.tsx b/frontend/components/Layout/Navbar/Navbar.tsx index c2fcac52a..bfd42b50a 100644 --- a/frontend/components/Layout/Navbar/Navbar.tsx +++ b/frontend/components/Layout/Navbar/Navbar.tsx @@ -1,6 +1,6 @@ import { Flex } from 'antd'; -import { SettingsButton } from './SettingsButton/SettingsButton'; -import { NotificationButton } from './NotificationButton/NotificationButton'; +import { SettingsButton } from './SettingsButton'; +import { NotificationButton } from './NotificationButton'; import Image from 'next/image'; export const Navbar = () => { diff --git a/frontend/components/Layout/Navbar/NotificationButton/NotificationButton.tsx b/frontend/components/Layout/Navbar/NotificationButton.tsx similarity index 100% rename from frontend/components/Layout/Navbar/NotificationButton/NotificationButton.tsx rename to frontend/components/Layout/Navbar/NotificationButton.tsx diff --git a/frontend/components/Layout/Navbar/SettingsButton/SettingsButton.tsx b/frontend/components/Layout/Navbar/SettingsButton.tsx similarity index 59% rename from frontend/components/Layout/Navbar/SettingsButton/SettingsButton.tsx rename to frontend/components/Layout/Navbar/SettingsButton.tsx index ad94d0792..1b36944f7 100644 --- a/frontend/components/Layout/Navbar/SettingsButton/SettingsButton.tsx +++ b/frontend/components/Layout/Navbar/SettingsButton.tsx @@ -1,10 +1,13 @@ import { SettingOutlined } from '@ant-design/icons'; import { Button, Dropdown, MenuProps } from 'antd'; -import { useMemo } from 'react'; -export const SettingsButton = ({ disabled }: { disabled: boolean }) => { - const items: MenuProps['items'] = useMemo(() => [], []); +const items: MenuProps['items'] = []; //placeholder for now +type SettingsButtonProps = { + disabled: boolean; +}; + +export const SettingsButton = ({ disabled }: SettingsButtonProps) => { return (