Skip to content

Commit

Permalink
Moves over chat
Browse files Browse the repository at this point in the history
  • Loading branch information
genmon committed Oct 12, 2023
1 parent 2311202 commit 4d35047
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 59 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions safe/src/app/Chat.tsx → app/components/chat.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client";

import { useState, useEffect } from "react";
import ChatNameForm from "@/app/components/ChatNameForm";
import ChatForm from "./components/ChatForm";
import { useMultiplayer } from "@/app/providers/multiplayer-context";
import ChatNameForm from "./chat-name-input";
import ChatForm from "./chat-message-input";
import { useMultiplayer } from "~/providers/multiplayer-context";

type ChatMessage = {
name: string;
Expand Down
2 changes: 2 additions & 0 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { V2_MetaFunction } from "partymix";
import Jukebox from "~/components/jukebox";
import ConnectionBadge from "~/components/connection-badge";
import Chat from "~/components/chat";

export const meta: V2_MetaFunction = () => {
return [
Expand All @@ -17,6 +18,7 @@ export default function Index() {
>
<h1 className="text-4xl font-semibold pb-6 text-stone-300">Loading...</h1>
<Jukebox />
<Chat />
<ConnectionBadge />
</main>
);
Expand Down
11 changes: 0 additions & 11 deletions safe/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions safe/src/app/globals.css

This file was deleted.

22 changes: 0 additions & 22 deletions safe/src/app/layout.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions safe/src/app/page.tsx

This file was deleted.

0 comments on commit 4d35047

Please sign in to comment.