Skip to content

Commit

Permalink
Alterando a pagina de integrações para dentro das Configurações
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Dec 14, 2024
1 parent 871123b commit 0c2fa33
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
7 changes: 0 additions & 7 deletions frontend/src/layout/MainListItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
Code,
ContactPhoneOutlined,
DashboardOutlined,
DeveloperModeOutlined,
LocalOffer,
MenuBook,
PeopleAltOutlined,
Expand Down Expand Up @@ -188,12 +187,6 @@ const MainListItems = (props) => {
icon={<AccountTreeOutlined />}
active={location.pathname === '/queues'}
/>
<ListItemLink
to="/Integrations"
primary={t("mainDrawer.listItems.integrations")}
icon={<DeveloperModeOutlined />}
active={location.pathname === '/Integrations'}
/>
<ListItemLink
to="/settings"
primary={t("mainDrawer.listItems.settings")}
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/pages/Settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AuthContext } from "../../context/Auth/AuthContext";
import toastError from "../../errors/toastError";
import api from "../../services/api";
import openSocket from "../../services/socket-io.js";
import Integrations from "../Integrations";
import ComponentSettings from "./ComponentSettings";
import Personalize from "./Personalize.js";

Expand Down Expand Up @@ -129,6 +130,7 @@ const Settings = ({ onThemeConfigUpdate }) => {
<Tab label={t("settings.tabs.personalize")} />
)}
<Tab label={t("settings.tabs.general")} />
<Tab label={t("settings.tabs.integrations")} />
</Tabs>
<Box p={3}>
{tabValue === 0 && (!isMasterAdminEnabled || user.profile === "masteradmin") && (
Expand All @@ -150,6 +152,13 @@ const Settings = ({ onThemeConfigUpdate }) => {
</ErrorBoundary>
</Container>
)}
{tabValue === 2 && (
<Container className={classes.container}>
<ErrorBoundary>
<Integrations />
</ErrorBoundary>
</Container>
)}
</Box>
</div>
);
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import ApiKey from "../pages/ApiKey/";
import Connections from "../pages/Connections/";
import Contacts from "../pages/Contacts/";
import Dashboard from "../pages/Dashboard/";
import Integrations from "../pages/Integrations";
import Login from "../pages/Login/";
import Queues from "../pages/Queues/";
import QuickAnswers from "../pages/QuickAnswers/";
Expand Down Expand Up @@ -44,7 +43,6 @@ const Routes = ({ toggleTheme, onThemeConfigUpdate }) => {
<Route exact path="/apikey" component={ApiKey} isPrivate />
<Route exact path="/Queues" component={Queues} isPrivate />
<Route exact path="/Tags" component={Tags} isPrivate />
<Route exact path="/Integrations" component={Integrations} isPrivate />
</LoggedInLayout>
</WhatsAppsProvider>
</Switch>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/translate/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ const messages = {
tabs: {
general: "General",
personalize: "Personalize",
integrations: "Integrations"

},
general: {
userCreation: {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/translate/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ const messages = {
tabs: {
general: "Generales",
personalize: "Personalizar",
integrations: "Integraciones"
},
general: {
userCreation: {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/translate/languages/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ const messages = {
tabs: {
general: "Gerais",
personalize: "Personalizar",
integrations: "Integrações"
},
general: {
userCreation: {
Expand Down

0 comments on commit 0c2fa33

Please sign in to comment.