refactor: update SearchBar to use async getStateInfo for improved state handling
This commit is contained in:
@@ -2,8 +2,8 @@ import { ButtonGroup } from "@mui/material";
|
|||||||
import Fields from "./Fields";
|
import Fields from "./Fields";
|
||||||
import { getStateInfo } from "@/lib/getStateInfo";
|
import { getStateInfo } from "@/lib/getStateInfo";
|
||||||
|
|
||||||
function SearchBar() {
|
async function SearchBar() {
|
||||||
const { matchedCity, matchedState } = getStateInfo();
|
const { matchedCity, matchedState } = await getStateInfo();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ButtonGroup
|
<ButtonGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user