Skip to content

Commit

Permalink
⭐ Add discord link
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Apr 10, 2023
1 parent 4602952 commit 719d90d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from "react";
import {
FaBars,
FaCog,
FaDiscord,
FaGithub,
FaQuestionCircle,
FaRobot,
Expand Down Expand Up @@ -89,6 +90,13 @@ const Drawer = ({
onClick={showHelp}
/>
<DrawerItem icon={<FaCog />} text="Settings" onClick={showSettings} />
<DrawerItem
icon={<FaDiscord />}
text="Discord"
onClick={() =>
window.open("https://discord.gg/jdSBAnmdnY", "_blank")
}
/>
<DrawerItem
icon={<FaTwitter />}
text="Twitter"
Expand Down
10 changes: 9 additions & 1 deletion src/components/HelpDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { FaGithub, FaTwitter } from "react-icons/fa";
import { FaDiscord, FaGithub, FaTwitter } from "react-icons/fa";
import Dialog from "./Dialog";

export default function HelpDialog({
Expand Down Expand Up @@ -30,6 +30,14 @@ export default function HelpDialog({
<p className="mt-2">Follow the journey below:</p>
</div>
<div className="mt-4 flex w-full items-center justify-center gap-5">
<div
className="cursor-pointer rounded-full bg-black/30 p-3 hover:bg-black/70"
onClick={() =>
window.open("https://discord.gg/jdSBAnmdnY", "_blank")
}
>
<FaDiscord size={30} />
</div>
<div
className="cursor-pointer rounded-full bg-black/30 p-3 hover:bg-black/70"
onClick={() =>
Expand Down

0 comments on commit 719d90d

Please sign in to comment.