fix: Corregir error activeTESCategory y meta tag deprecado
- Añadido estado activeTESCategory que faltaba en Farmacos.tsx - Corregido tipo de activeCategory para incluir 'tes' - Añadido meta tag mobile-web-app-capable (nuevo estándar) - Mantenido apple-mobile-web-app-capable para compatibilidad - Resuelto ReferenceError: activeTESCategory is not defined
This commit is contained in:
parent
b9413d4d0d
commit
202baf9401
|
|
@ -7,6 +7,7 @@
|
||||||
<meta name="description" content="Guía rápida de protocolos médicos de emergencias para Técnicos de Emergencias Sanitarias (TES). RCP, fármacos, calculadoras y más." />
|
<meta name="description" content="Guía rápida de protocolos médicos de emergencias para Técnicos de Emergencias Sanitarias (TES). RCP, fármacos, calculadoras y más." />
|
||||||
<meta name="author" content="EMERGES TES" />
|
<meta name="author" content="EMERGES TES" />
|
||||||
<meta name="theme-color" content="#1a1f2e" />
|
<meta name="theme-color" content="#1a1f2e" />
|
||||||
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,8 @@ const Farmacos = () => {
|
||||||
const highlightId = searchParams.get('id');
|
const highlightId = searchParams.get('id');
|
||||||
|
|
||||||
const [searchQuery, setSearchQuery] = useState('');
|
const [searchQuery, setSearchQuery] = useState('');
|
||||||
const [activeCategory, setActiveCategory] = useState<DrugCategory | 'todos'>('todos');
|
const [activeCategory, setActiveCategory] = useState<DrugCategory | 'todos' | 'tes'>('tes');
|
||||||
|
const [activeTESCategory, setActiveTESCategory] = useState<TESMedication['category'] | 'todos'>('todos');
|
||||||
const [showAdministrationGuide, setShowAdministrationGuide] = useState(true);
|
const [showAdministrationGuide, setShowAdministrationGuide] = useState(true);
|
||||||
const [showTerminologyGuide, setShowTerminologyGuide] = useState(false);
|
const [showTerminologyGuide, setShowTerminologyGuide] = useState(false);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue