Commit 28cadf07 authored by Grant's avatar Grant
Browse files

make the chat button actually work

parent 235bc0b6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
# where the backend is located
VITE_API_HOST=http://localhost:3000

# what homeserver hosts the matrix users
VITE_MATRIX_HOST=aftermath.gg

# what hostname does the element instance run on
VITE_ELEMENT_HOST=https://chat.fediverse.events
 No newline at end of file
+8 −2
Original line number Diff line number Diff line
import { Badge, Button } from "@nextui-org/react";
import { Badge, Button, Link } from "@nextui-org/react";
import { useChatContext } from "../../contexts/ChatContext";

const OpenChatButton = () => {
@@ -11,7 +11,13 @@ const OpenChatButton = () => {
      color="danger"
      size="sm"
    >
      <Button>Chat</Button>
      <Button
        as={Link}
        href={import.meta.env.VITE_ELEMENT_HOST!}
        target="_blank"
      >
        Chat
      </Button>
    </Badge>
  );
};