fix(frontend): ensure dashboard empresa navigation works with href fallback
This commit is contained in:
parent
b99f4427ae
commit
bf0e6f3e0d
1 changed files with 8 additions and 4 deletions
|
|
@ -483,9 +483,13 @@ const Dashboard = () => {
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 px-5 pb-4">
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 px-5 pb-4">
|
||||||
{/* Gestão de Empresas */}
|
{/* Gestão de Empresas */}
|
||||||
<button
|
<a
|
||||||
onClick={() => router.push('/dashboard/empresa-novo')}
|
href="/dashboard/empresa-novo"
|
||||||
className="bg-white hover:bg-gray-50 border border-gray-200 rounded-xl p-6 text-center transition-colors duration-200 cursor-pointer group min-h-[48px]"
|
onClick={(event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
router.push('/dashboard/empresa-novo');
|
||||||
|
}}
|
||||||
|
className="bg-white hover:bg-gray-50 border border-gray-200 rounded-xl p-6 text-center transition-colors duration-200 cursor-pointer group min-h-[48px] block"
|
||||||
>
|
>
|
||||||
<div className="w-12 h-12 bg-blue-100 rounded-lg mx-auto mb-4 flex items-center justify-center group-hover:bg-blue-200 transition-colors">
|
<div className="w-12 h-12 bg-blue-100 rounded-lg mx-auto mb-4 flex items-center justify-center group-hover:bg-blue-200 transition-colors">
|
||||||
<svg className="w-6 h-6 text-blue-600" fill="currentColor" viewBox="0 0 20 20">
|
<svg className="w-6 h-6 text-blue-600" fill="currentColor" viewBox="0 0 20 20">
|
||||||
|
|
@ -494,7 +498,7 @@ const Dashboard = () => {
|
||||||
</div>
|
</div>
|
||||||
<h3 className="font-medium text-gray-900 mb-2">🏢 Gestão de Empresas</h3>
|
<h3 className="font-medium text-gray-900 mb-2">🏢 Gestão de Empresas</h3>
|
||||||
<p className="text-sm text-gray-500">Listar e gerenciar empresas</p>
|
<p className="text-sm text-gray-500">Listar e gerenciar empresas</p>
|
||||||
</button>
|
</a>
|
||||||
|
|
||||||
{/* Gestão de Produtos Venda - Oculto para colaborador */}
|
{/* Gestão de Produtos Venda - Oculto para colaborador */}
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue