Merge branch 'claude/youthful-mendel-0c569f'

This commit is contained in:
VPS 4 Builder
2026-05-14 04:44:55 +02:00
7 changed files with 20 additions and 35 deletions
+8 -8
View File
@@ -128,7 +128,7 @@ export const Dashboard: React.FC = () => {
<div className="flex items-center gap-3">
{(currentRole === 'admin' || currentRole === 'donoclinica' || currentRole === 'funcionario') && (
<button
onClick={() => window.location.hash = '#/relatorios'}
onClick={() => history.pushState({}, '', '/relatorios')}
className="bg-white text-gray-900 border border-gray-200 px-6 py-3 rounded-2xl text-xs font-black uppercase tracking-widest hover:bg-gray-50 transition-all flex items-center gap-2 shadow-sm"
>
<Clock size={16} /> Relatórios
@@ -136,7 +136,7 @@ export const Dashboard: React.FC = () => {
)}
{(currentRole === 'admin' || currentRole === 'donoclinica' || currentRole === 'funcionario') && (
<button
onClick={() => window.location.hash = '#/pacientes'}
onClick={() => history.pushState({}, '', '/pacientes')}
className="bg-blue-600 text-white px-6 py-3 rounded-2xl text-xs font-black uppercase tracking-widest hover:bg-blue-700 hover:shadow-xl hover:shadow-blue-200 transition-all flex items-center gap-2 shadow-lg shadow-blue-100"
>
<Plus size={16} /> Novo Paciente
@@ -155,7 +155,7 @@ export const Dashboard: React.FC = () => {
trend="+12% este mês"
isPositive={true}
color="blue"
onClick={() => window.location.hash = '#/pacientes'}
onClick={() => history.pushState({}, '', '/pacientes')}
/>
{showFinancials && (
<StatCard
@@ -165,7 +165,7 @@ export const Dashboard: React.FC = () => {
trend="+5.4% vs mês ant."
isPositive={true}
color="green"
onClick={() => window.location.hash = '#/financeiro'}
onClick={() => history.pushState({}, '', '/financeiro')}
/>
)}
<StatCard
@@ -175,7 +175,7 @@ export const Dashboard: React.FC = () => {
trend="82% de ocupação"
isPositive={true}
color="purple"
onClick={() => window.location.hash = '#/agenda'}
onClick={() => history.pushState({}, '', '/agenda')}
/>
{showFinancials && (
<StatCard
@@ -185,7 +185,7 @@ export const Dashboard: React.FC = () => {
trend="-2% vs ontem"
isPositive={false}
color="amber"
onClick={() => window.location.hash = '#/leads'}
onClick={() => history.pushState({}, '', '/leads')}
/>
)}
</div>
@@ -253,7 +253,7 @@ export const Dashboard: React.FC = () => {
{recent.length > 0 ? recent.map((app: any) => (
<div
key={app.id}
onClick={() => window.location.hash = '#/agenda'}
onClick={() => history.pushState({}, '', '/agenda')}
className="flex items-center gap-4 group cursor-pointer"
>
<div className="w-12 h-12 rounded-2xl bg-white/10 flex items-center justify-center text-blue-400 group-hover:bg-blue-600 group-hover:text-white transition-all duration-300 flex-shrink-0">
@@ -276,7 +276,7 @@ export const Dashboard: React.FC = () => {
</div>
<button
onClick={() => window.location.hash = '#/agenda'}
onClick={() => history.pushState({}, '', '/agenda')}
className="w-full mt-8 bg-white/5 border border-white/10 text-white py-4 rounded-2xl text-[10px] font-black uppercase tracking-widest hover:bg-white/10 transition-all flex items-center justify-center gap-2 group"
>
Ver Agenda Completa <ArrowRight size={14} className="group-hover:translate-x-1 transition-transform" />
+2 -2
View File
@@ -8,7 +8,7 @@ export const DentistRegisterView: React.FC = () => {
const toast = useToast();
// Get data from URL
const query = new URLSearchParams(window.location.hash.split('?')[1]);
const query = new URLSearchParams(window.location.search);
const clinicaId = query.get('clinica');
const tempName = query.get('nome');
const token = query.get('token');
@@ -232,7 +232,7 @@ export const DentistRegisterView: React.FC = () => {
<p className="text-gray-500 font-medium mb-10">Seu perfil foi criado e você está vinculado à unidade <br /> <span className="text-blue-600 font-bold">{clinicaId}</span>.</p>
<button
onClick={() => window.location.hash = '/login'}
onClick={() => { history.pushState({}, '', '/login'); window.location.reload(); }}
className="w-full bg-gray-900 text-white py-5 rounded-2xl font-black uppercase tracking-widest hover:bg-blue-600 shadow-2xl transition-all"
>
Ir para o Login