refactor: improve key assignment in FrequentSearches and update TextHeader to use async getStateInfo
This commit is contained in:
@@ -14,6 +14,7 @@ function FrequentSearches() {
|
||||
<ul className="flex items-center justify-start gap-[14px] pl-[14px]">
|
||||
{childrenList.map((item, idx) => (
|
||||
<Link
|
||||
key={item.id || idx}
|
||||
href={{
|
||||
pathname: "/doctors",
|
||||
query: {
|
||||
@@ -21,7 +22,7 @@ function FrequentSearches() {
|
||||
},
|
||||
}}
|
||||
>
|
||||
<li key={idx}>
|
||||
<li>
|
||||
<Button
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
|
||||
Reference in New Issue
Block a user