diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 5d24124..6a931dc 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -36,10 +36,12 @@ export default function HomePage() { {/* Title */} -
- +
+
+ +
-
+
diff --git a/frontend/src/components/web3/chat-messages.tsx b/frontend/src/components/web3/chat-messages.tsx index 468b441..66bfe36 100644 --- a/frontend/src/components/web3/chat-messages.tsx +++ b/frontend/src/components/web3/chat-messages.tsx @@ -15,14 +15,13 @@ import { SendMessage } from './send-message' export const ChatMessages: FC = () => { const { activeChain } = useInkathon() - const { isChatroomLoading, isChatroomActive, messages, isMessagesLoading } = + const { isChatroomLoading, isChatroomActive, messages, chatroomId, isMessagesLoading } = useContext(AppContext) - console.log('ischatroomactive', isChatroomActive) // Connection Loading Indicator if (isChatroomLoading) return ( -
+
Connecting to chatrooms
@@ -30,7 +29,7 @@ export const ChatMessages: FC = () => { if (!isChatroomLoading && !isChatroomActive) // No chatroom found return ( -
+
No chatroom found
@@ -39,7 +38,9 @@ export const ChatMessages: FC = () => { return ( <>
-

Chatroom

+

+ Chatroom ID: {chatroomId} +

diff --git a/frontend/src/components/web3/connect-button.tsx b/frontend/src/components/web3/connect-button.tsx index 91947af..a90ecf9 100644 --- a/frontend/src/components/web3/connect-button.tsx +++ b/frontend/src/components/web3/connect-button.tsx @@ -35,6 +35,7 @@ import { import { env } from '@/config/environment' import { truncateHash } from '@/utils/truncate-hash' +import { Input } from '../ui/input' import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip' import NewChatRoomButton from './new-chatroom-button' @@ -116,18 +117,18 @@ export const ConnectButton: FC = () => { // Account Menu & Disconnect Button return (
-
+
{/* Account Name, Address, and AZERO.ID-Domain (if assigned) */} - + + + {/* Deploy chatroom to a supported chain */} + {env.chatroomChains.map((chain) => ( + await handleCreateChat(chain)} + > +
+

{chain.name}

+
+
+ ))} +
+
+ + {/* Join chatroom form */} +
+ setJoinChatroomId(String(e.target.value))} + /> + - - - {/* Supported Chains */} - {env.chatroomChains.map((chain) => ( - await handleCreateChat(chain)} - > -
-

{chain.name}

-
-
- ))} -
- +
+ ) : (
-
+ {/* Invite friends form */} +
setParticipantId(String(e.target.value))} />