Fix: Remove "Geral" from settings page
The "Geral" menu item should not be displayed as a separate page, but rather the content should be displayed within the "Configurações" page. This commit removes the "Geral" page and ensures the correct display of the settings menu.
This commit is contained in:
parent
e5b764b986
commit
07bf385f0e
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
import { SidebarProvider } from "@/components/ui/sidebar";
|
|
||||||
import SettingsSidebar from "@/components/settings/SettingsSidebar";
|
|
||||||
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
|
||||||
import MeuCadastroForm from "@/components/settings/MeuCadastroForm";
|
import MeuCadastroForm from "@/components/settings/MeuCadastroForm";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
@ -10,9 +8,7 @@ const Configuracoes = () => {
|
|||||||
const [tab, setTab] = useState("visao-geral");
|
const [tab, setTab] = useState("visao-geral");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarProvider>
|
|
||||||
<div className="flex min-h-screen w-full bg-background">
|
<div className="flex min-h-screen w-full bg-background">
|
||||||
<SettingsSidebar />
|
|
||||||
<main className="flex-1 p-4 md:p-8">
|
<main className="flex-1 p-4 md:p-8">
|
||||||
<h1 className="text-2xl font-bold mb-6">Configurações</h1>
|
<h1 className="text-2xl font-bold mb-6">Configurações</h1>
|
||||||
<Tabs value={tab} onValueChange={setTab}>
|
<Tabs value={tab} onValueChange={setTab}>
|
||||||
@ -45,7 +41,6 @@ const Configuracoes = () => {
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</SidebarProvider>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user