refactor: improve key assignment in FrequentSearches and update TextHeader to use async getStateInfo

This commit is contained in:
hamed
2025-12-10 09:53:51 +03:30
parent 1df39909ea
commit 23f20626a6
3 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ import { getStateInfo } from "@/lib/getStateInfo";
import AText from "../icons/AText";
import BText from "../icons/BText";
function TextHeader() {
const { matchedCity } = getStateInfo();
async function TextHeader() {
const { matchedCity } = await getStateInfo();
return (
<div className="z-[50]">