chore(ui): read Brand logo alt text from config
alt="Faunosteo" hardcoded — identity strings must come from useConfig() (CLAUDE.md identity rule). Output identical under default config; custom APP_BRAND_NAME now honored.
This commit is contained in:
1 parent
4ea8c90c7f
commit
86ac366136
1 file changed
+4
-1
@@ -1,10 +1,13 @@
|
||||
import { useConfig } from '@/app/providers/ConfigProvider'
|
||||
|
||||
const HEIGHT = { sm: 'h-7', md: 'h-9', lg: 'h-11' } as const
|
||||
|
||||
export default function Brand({ size = 'md' }: { size?: 'sm' | 'md' | 'lg' }) {
|
||||
const { brandName } = useConfig()
|
||||
return (
|
||||
<img
|
||||
src="/logo-horizontal.svg"
|
||||
alt="Faunosteo"
|
||||
alt={brandName}
|
||||
className={`${HEIGHT[size]} w-auto`}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user