{name}
diff --git a/src/components/DashBoard/Discord/Plugins/CustomCommands/CreateCommand.js b/src/components/DashBoard/Discord/Plugins/CustomCommands/CreateCommand.js
index b3936ea..be59ce2 100644
--- a/src/components/DashBoard/Discord/Plugins/CustomCommands/CreateCommand.js
+++ b/src/components/DashBoard/Discord/Plugins/CustomCommands/CreateCommand.js
@@ -89,7 +89,7 @@ const CreateCommand = ({ setCreatingCommand, children, role, guild: userConnecte
}))
);
}
- }, [editing, userConnectedGuildInfo?.roles, setAllowedRoles]);
+ }, [editing]);
return (
diff --git a/src/components/DashBoard/Discord/Plugins/PluginHome.js b/src/components/DashBoard/Discord/Plugins/PluginHome.js
index dd6cc08..a4824f5 100644
--- a/src/components/DashBoard/Discord/Plugins/PluginHome.js
+++ b/src/components/DashBoard/Discord/Plugins/PluginHome.js
@@ -10,7 +10,6 @@ import plugins from "./plugins.json";
import CustomCommands from "./CustomCommands/CustomCommands";
import { CommandContextProvider } from "../../../../contexts/CommandContext";
import App from "./App";
-import Roles from "./Roles";
const PluginHome = ({ match, guildId, connectedGuild }) => {
const [prefix, setPrefix] = useState("!");
@@ -113,13 +112,6 @@ const PluginHome = ({ match, guildId, connectedGuild }) => {
)}
- {activePlugins["roles"] && (
-
-
-
-
-
- )}
diff --git a/src/components/DashBoard/Discord/Plugins/Roles.js b/src/components/DashBoard/Discord/Plugins/Roles.js
deleted file mode 100644
index 6c29be4..0000000
--- a/src/components/DashBoard/Discord/Plugins/Roles.js
+++ /dev/null
@@ -1,67 +0,0 @@
-import React, { useEffect, useState, useCallback, useContext } from "react";
-import firebase from "../../../../firebase";
-import { colorStyles } from "../../../Shared/userUtils";
-import { DiscordContext } from "../../../../contexts/DiscordContext";
-import Select from "react-select";
-
-const Leveling = ({ location, guild: userConnectedGuildInfo }) => {
- const { setActivePlugins } = useContext(DiscordContext);
- const guildId = userConnectedGuildInfo?.id;
-
- useEffect(() => {
- (async () => {
- const guild = await firebase.db
- .collection("Leveling")
- .doc(guildId || " ")
- .get();
- const data = guild.data();
- if (data) {
- const id = data.notifications;
- if (id) {
- const apiUrl = `${process.env.REACT_APP_API_URL}/resolvechannel?guild=${guildId}&channel=${id}`;
- const response = await fetch(apiUrl);
- const channel = await response.json();
- }
- }
- })();
- }, [location, guildId]);
-
- return (
-
-
-
-
- Role Management
-
-
-
-
-
-
-
-
Different ways to have the bot manage user roles. Give a role on join, toggle roles with reactions, etc.
-
-
-
- );
-};
-
-export default React.memo(Leveling);
diff --git a/src/components/DashBoard/Discord/Plugins/plugins.json b/src/components/DashBoard/Discord/Plugins/plugins.json
index 53d7deb..77220c6 100644
--- a/src/components/DashBoard/Discord/Plugins/plugins.json
+++ b/src/components/DashBoard/Discord/Plugins/plugins.json
@@ -42,30 +42,10 @@
"comingSoon": true
},
{
- "id": "roles",
- "title": "Role Management",
+ "id": "reactionroles",
+ "title": "Reaction Roles",
"image": "aprove.png",
- "description": "Let the bot manage members roles in different ways like reaction roles",
- "comingSoon": true
- },
- {
- "id": "music",
- "title": "Music",
- "image": "music.svg",
- "description": "Let your members get roles by reacting to messages",
- "comingSoon": true
- },{
- "id": "polls",
- "title": "Polls",
- "image": "poll.svg",
- "description": "Let your members get roles by reacting to messages",
- "comingSoon": true
- },{
- "id": "giveaways",
- "title": "Giveaways",
- "image": "gift.svg",
"description": "Let your members get roles by reacting to messages",
"comingSoon": true
-
}
]
diff --git a/src/components/header/Header.js b/src/components/header/Header.js
index d6bed26..444053e 100644
--- a/src/components/header/Header.js
+++ b/src/components/header/Header.js
@@ -6,6 +6,7 @@ import { CSSTransition } from "react-transition-group";
import ClickAwayListener from "@material-ui/core/ClickAwayListener";
import { useCallback } from "react";
import Modal from "react-modal";
+import YouTubeIcon from "@material-ui/icons/YouTube";
import A from "../Shared/A";
import ClearIcon from "@material-ui/icons/Clear";
import firebase from "../../firebase";
@@ -37,7 +38,7 @@ const Header = props => {
if (data) {
const { displayName, profilePicture } = data;
setCurrentUser(prev => ({
- ...prev,
+ ...prev,
name: displayName,
profilePicture,
}));
@@ -132,26 +133,10 @@ const Header = props => {
Twitch
-
+ {/*
*/}
{
Chat Manager
Discord Bot
Community
-
- Support Us
-
+
Support Us
{/*
About */}
diff --git a/src/components/header/Header.scss b/src/components/header/Header.scss
index 4b523ad..5f4f6f5 100644
--- a/src/components/header/Header.scss
+++ b/src/components/header/Header.scss
@@ -198,7 +198,7 @@
justify-content: center;
align-items: center;
- & > button[type="submit"]{
+ & > button:first-child{
all: unset;
box-sizing: content-box !important;
width: 100%;
@@ -242,9 +242,6 @@
width: 70%;
flex: 1;
box-sizing: content-box !important;
- &.discord{
- background: #6f86d4;
- }
cursor: pointer;
&:hover {
filter: brightness(0.85);