fix: hero image configurable via uiText + seed no longer overwrites admin values

- Hero.tsx reads hero_image_url from uiText store first, falls back to banners then default
- Seed script now only creates keys that don't exist (no overwrite)
- Added hero_image_url key to seed + admin panel UI texts groups
- Reverted DEFAULT_TEXTS initialization (caused hydration mismatch)
- settingsStore back to empty init, fetchSettings populates from API
This commit is contained in:
parsa aghaei committed 2026-07-11 18:25:59 +03:30
1 parent 53301705da
commit 40d750ad4b
3 files changed
+7 -6

No files matched your search

@@ -14,6 +14,7 @@ const GROUPS: Record<string, string[]> = {
"hero_badge", "hero_title", "hero_desc",
"hero_btn_advisor", "hero_btn_products",
"hero_image_badge", "hero_image_title", "hero_quality_standard",
"hero_image_url",
"hero_stat_founded", "hero_stat_agencies", "hero_stat_german_formula",
],
"دستیار سلامت": [