fix(ui): CoursePricingCard state sync and Navbar text truncation
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 56s Details

This commit is contained in:
Sidney Gomes 2026-07-22 21:06:06 -03:00
parent 64a78495d9
commit 444c867ae8
2 changed files with 6 additions and 1 deletions

View File

@ -11,6 +11,11 @@ function CoursePricingCard({ course, saveLoading, onSave }: { course: Course, sa
const [localPrice, setLocalPrice] = useState(course.price || 0); const [localPrice, setLocalPrice] = useState(course.price || 0);
const [localLocked, setLocalLocked] = useState(course.isLocked || false); const [localLocked, setLocalLocked] = useState(course.isLocked || false);
useEffect(() => {
setLocalPrice(course.price || 0);
setLocalLocked(course.isLocked || false);
}, [course.price, course.isLocked]);
const isChanged = localPrice !== (course.price || 0) || localLocked !== (course.isLocked || false); const isChanged = localPrice !== (course.price || 0) || localLocked !== (course.isLocked || false);
return ( return (

View File

@ -134,7 +134,7 @@ export default function Navbar({ user, activeView, setView, onLogout }: NavbarPr
className={`font-semibold transition-colors hover:text-[#E50914] flex items-center space-x-1.5 whitespace-nowrap flex-shrink-0 ${activeView === 'certificates' ? 'text-white' : 'text-zinc-400'}`} className={`font-semibold transition-colors hover:text-[#E50914] flex items-center space-x-1.5 whitespace-nowrap flex-shrink-0 ${activeView === 'certificates' ? 'text-white' : 'text-zinc-400'}`}
> >
<GraduationCap className="w-4 h-4 text-[#E50914]" /> <GraduationCap className="w-4 h-4 text-[#E50914]" />
<span>Meu Certificado</span> <span>Meus Certificados</span>
</button> </button>
</div> </div>
</div> </div>