fix(admin): use correct admin token and fix react dom crash
Build and Deploy (Gitea) / build-and-deploy (push) Failing after 1m28s Details

This commit is contained in:
Sidney Gomes 2026-07-22 21:50:50 -03:00
parent 6a16d97161
commit df1d63019e
4 changed files with 2532 additions and 2532 deletions

1760
server-json.ts Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1561
server.ts

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@ function CoursePricingCard({ course, saveLoading, onSave }: { course: Course, sa
localLocked ? 'bg-amber-500/20 text-amber-400 border border-amber-500/30' : 'bg-emerald-500/20 text-emerald-400 border border-emerald-500/30'
}`}
>
{localLocked ? '💰 Pago (Bloqueado)' : '🔓 Gratuito (Livre)'}
{localLocked ? <span>💰 Pago (Bloqueado)</span> : <span>🔓 Gratuito (Livre)</span>}
</button>
</div>
@ -67,7 +67,7 @@ function CoursePricingCard({ course, saveLoading, onSave }: { course: Course, sa
) : (
<Save className="w-4 h-4" />
)}
Salvar Alteração
<span>Salvar Alteração</span>
</button>
</div>
);
@ -82,7 +82,7 @@ export const AdminPricingManager: React.FC<AdminPricingManagerProps> = ({ course
const [showPlanModal, setShowPlanModal] = useState(false);
const [planForm, setPlanForm] = useState<Partial<Plan>>({ cycle: 'LIFETIME', active: true, includedCourses: [] });
const token = localStorage.getItem('devflix_token');
const token = localStorage.getItem('devflix_admin_token');
const fetchPlans = async () => {
setLoading(true);