make the chat button actually work
This commit is contained in:
parent
235bc0b6ca
commit
28cadf07ee
|
@ -0,0 +1,8 @@
|
||||||
|
# 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
|
|
@ -1,4 +1,4 @@
|
||||||
import { Badge, Button } from "@nextui-org/react";
|
import { Badge, Button, Link } from "@nextui-org/react";
|
||||||
import { useChatContext } from "../../contexts/ChatContext";
|
import { useChatContext } from "../../contexts/ChatContext";
|
||||||
|
|
||||||
const OpenChatButton = () => {
|
const OpenChatButton = () => {
|
||||||
|
@ -11,7 +11,13 @@ const OpenChatButton = () => {
|
||||||
color="danger"
|
color="danger"
|
||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<Button>Chat</Button>
|
<Button
|
||||||
|
as={Link}
|
||||||
|
href={import.meta.env.VITE_ELEMENT_HOST!}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
Chat
|
||||||
|
</Button>
|
||||||
</Badge>
|
</Badge>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue