From 8e19edb4f82a3bcc782e7ee076310c9c531ae560 Mon Sep 17 00:00:00 2001 From: Sidney Gomes Date: Fri, 24 Jul 2026 18:33:14 -0300 Subject: [PATCH] feat: capitalize brandName everywhere and remove hardcoded microtec strings --- src/AdminApp.tsx | 2 +- src/App.tsx | 8 ++++---- src/Root.tsx | 2 +- src/components/AdminDashboard.tsx | 6 +++--- src/components/Navbar.tsx | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/AdminApp.tsx b/src/AdminApp.tsx index bdde3b9..78f3e55 100644 --- a/src/AdminApp.tsx +++ b/src/AdminApp.tsx @@ -131,7 +131,7 @@ export default function AdminApp() {

- {settings?.brandName || 'MICROTEC'}FLIX ADMIN + {(settings?.brandName || 'MICROTEC').toUpperCase()}FLIX ADMIN

Autenticação obrigatória para gestores, administradores e moderadores.

diff --git a/src/App.tsx b/src/App.tsx index ac60e65..d963d4d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -66,7 +66,7 @@ export default function App() { .then(data => { setSettings(data); if (data.brandName) { - document.title = `${data.brandName}FLIX - Plataforma de Estudos`; + document.title = `${data.brandName.charAt(0).toUpperCase() + data.brandName.slice(1)}Flix - Plataforma de Estudos`; } }) .catch(err => console.error('Error fetching settings:', err)); @@ -456,12 +456,12 @@ export default function App() { {/* Footer */} ) : ( @@ -478,7 +478,7 @@ export default function App() {

- {settings?.brandName || 'MICROTEC'}FLIX + {(settings?.brandName || 'MICROTEC').toUpperCase()}FLIX

{settings?.brandSlogan || 'Acelere seus estudos em informática e pacote Office no estilo Netflix.'} diff --git a/src/Root.tsx b/src/Root.tsx index a725cdc..8c8e29d 100644 --- a/src/Root.tsx +++ b/src/Root.tsx @@ -22,7 +22,7 @@ export default function Root() { React.useEffect(() => { // Dynamically update document title and favicon - document.title = isAdmin ? 'MicrotecFlix - Admin Portal' : 'MicrotecFlix - Plataforma de Estudos'; + document.title = isAdmin ? 'Admin Portal' : 'Plataforma de Estudos'; let link = document.querySelector("link[rel~='icon']") as HTMLLinkElement; if (!link) { diff --git a/src/components/AdminDashboard.tsx b/src/components/AdminDashboard.tsx index 1289409..a2b7828 100644 --- a/src/components/AdminDashboard.tsx +++ b/src/components/AdminDashboard.tsx @@ -357,7 +357,7 @@ export default function AdminDashboard({ token, adminUser, onLogout }: AdminDash - {settings?.brandName || 'MICROTEC'}FLIX + {(settings?.brandName || 'MICROTEC').toUpperCase()}FLIX