Skip to content

Commit 881d83e

Browse files
authored
Merge pull request #362 from map-of-pi/feature/filter_search
Approved (1).
2 parents 0e31f16 + 9a87922 commit 881d83e

20 files changed

+421
-149
lines changed

messages/ar.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "استخدام GPS الجهاز",
3030
"PREFERRED_SEARCH_CENTER": "استخدام مركز البحث"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "فلاتر البحث",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "تضمين البائعين النشطين",
35+
"INCLUDE_INACTIVE_SELLERS": "تضمين البائعين غير النشطين",
36+
"INCLUDE_TEST_SELLERS": "تضمين البائعين التجريبيين",
37+
"INCLUDE_TRUST_LEVEL_100": "تضمين مستوى الثقة 100",
38+
"INCLUDE_TRUST_LEVEL_80": "تضمين مستوى الثقة 80",
39+
"INCLUDE_TRUST_LEVEL_50": "تضمين مستوى الثقة 50",
40+
"INCLUDE_TRUST_LEVEL_0": "تضمين مستوى الثقة 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "اتصل بـ Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "تم حفظ التفضيلات بنجاح",

messages/en-GB.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Use my device GPS",
3030
"PREFERRED_SEARCH_CENTER": "Use Search Centre"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Search Filters",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Include active sellers",
35+
"INCLUDE_INACTIVE_SELLERS": "Include inactive sellers",
36+
"INCLUDE_TEST_SELLERS": "Include test sellers",
37+
"INCLUDE_TRUST_LEVEL_100": "Include trust level 100",
38+
"INCLUDE_TRUST_LEVEL_80": "Include trust level 80",
39+
"INCLUDE_TRUST_LEVEL_50": "Include trust level 50",
40+
"INCLUDE_TRUST_LEVEL_0": "Include trust level 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "Contact Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Preferences successful",

messages/en.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Use my device GPS",
3030
"PREFERRED_SEARCH_CENTER": "Use Search Center"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Search Filters",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Include active sellers",
35+
"INCLUDE_INACTIVE_SELLERS": "Include inactive sellers",
36+
"INCLUDE_TEST_SELLERS": "Include test sellers",
37+
"INCLUDE_TRUST_LEVEL_100": "Include trust level 100",
38+
"INCLUDE_TRUST_LEVEL_80": "Include trust level 80",
39+
"INCLUDE_TRUST_LEVEL_50": "Include trust level 50",
40+
"INCLUDE_TRUST_LEVEL_0": "Include trust level 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "Contact Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Preferences successful",

messages/es.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Usar el GPS de mi dispositivo",
3030
"PREFERRED_SEARCH_CENTER": "Usar el Centro de Búsqueda"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Filtros de búsqueda",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Incluir vendedores activos",
35+
"INCLUDE_INACTIVE_SELLERS": "Incluir vendedores inactivos",
36+
"INCLUDE_TEST_SELLERS": "Incluir vendedores de prueba",
37+
"INCLUDE_TRUST_LEVEL_100": "Incluir nivel de confianza 100",
38+
"INCLUDE_TRUST_LEVEL_80": "Incluir nivel de confianza 80",
39+
"INCLUDE_TRUST_LEVEL_50": "Incluir nivel de confianza 50",
40+
"INCLUDE_TRUST_LEVEL_0": "Incluir nivel de confianza 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "Contactar a Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Preferencias guardadas con éxito",

messages/ewe-BJ.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Zã nye mɔ̃a ƒe GPS",
3030
"PREFERRED_SEARCH_CENTER": "Zã Didiƒe"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Agbalẽŋlɔwo ƒe Filterwo",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Le ame aɖe si dɔ agboɖa le ŋkeke me",
35+
"INCLUDE_INACTIVE_SELLERS": "Le ame aɖe si dɔ agboɖa o le ŋkeke me",
36+
"INCLUDE_TEST_SELLERS": "Le ame aɖe si dɔ agboɖa dɔɖa",
37+
"INCLUDE_TRUST_LEVEL_100": "Le ame aɖe si nà agbo 100%",
38+
"INCLUDE_TRUST_LEVEL_80": "Le ame aɖe si nà agbo 80%",
39+
"INCLUDE_TRUST_LEVEL_50": "Le ame aɖe si nà agbo 50%",
40+
"INCLUDE_TRUST_LEVEL_0": "Le ame aɖe si nà agbo 0%"
41+
},
3242
"CONTACT_MAP_OF_PI": "Kadodo ƒe Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Nu siwo wodi la kpɔ dzidzedze",

messages/fon-BJ.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Zan GPS azɔwanú ce tɔn",
3030
"PREFERRED_SEARCH_CENTER": "Zan Bibaatɛn"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Wàɖànsu ƒè Filtèr",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Gba anɔnkɔ tɔn xɔxɔ me",
35+
"INCLUDE_INACTIVE_SELLERS": "Gba anɔnkɔ tɔn mà xɔxɔ o me",
36+
"INCLUDE_TEST_SELLERS": "Gba anɔnkɔ tɔn sɔ̃ɖo me",
37+
"INCLUDE_TRUST_LEVEL_100": "Gba anɔnkɔ tɔn wɔ ɖe 100%",
38+
"INCLUDE_TRUST_LEVEL_80": "Gba anɔnkɔ tɔn wɔ ɖe 80%",
39+
"INCLUDE_TRUST_LEVEL_50": "Gba anɔnkɔ tɔn wɔ ɖe 50%",
40+
"INCLUDE_TRUST_LEVEL_0": "Gba anɔnkɔ tɔn wɔ ɖe 0%"
41+
},
3242
"CONTACT_MAP_OF_PI": "Do xo sedo Map Of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Nǔ e jló we lɛ é ɖuɖeji",

messages/fr.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Utiliser le GPS de mon appareil",
3030
"PREFERRED_SEARCH_CENTER": "Utiliser le Centre de recherche"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Filtres de recherche",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Inclure les vendeurs actifs",
35+
"INCLUDE_INACTIVE_SELLERS": "Inclure les vendeurs inactifs",
36+
"INCLUDE_TEST_SELLERS": "Inclure les vendeurs test",
37+
"INCLUDE_TRUST_LEVEL_100": "Inclure le niveau de confiance 100",
38+
"INCLUDE_TRUST_LEVEL_80": "Inclure le niveau de confiance 80",
39+
"INCLUDE_TRUST_LEVEL_50": "Inclure le niveau de confiance 50",
40+
"INCLUDE_TRUST_LEVEL_0": "Inclure le niveau de confiance 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "Contacter Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Préférences enregistrées",

messages/hau-NG.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Yi amfani da GPS na na'urar",
3030
"PREFERRED_SEARCH_CENTER": "Yi amfani da Cibiyar Bincike"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Farantan Bincike",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Hada da masu sayarwa masu aiki",
35+
"INCLUDE_INACTIVE_SELLERS": "Hada da masu sayarwa marasa aiki",
36+
"INCLUDE_TEST_SELLERS": "Hada da masu sayarwa na gwaji",
37+
"INCLUDE_TRUST_LEVEL_100": "Hada da matakin amana 100",
38+
"INCLUDE_TRUST_LEVEL_80": "Hada da matakin amana 80",
39+
"INCLUDE_TRUST_LEVEL_50": "Hada da matakin amana 50",
40+
"INCLUDE_TRUST_LEVEL_0": "Hada da matakin amana 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "Tuntubi Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Zaɓuɓɓuka sun yi nasara",

messages/ja.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "デバイスのGPSを使用",
3030
"PREFERRED_SEARCH_CENTER": "検索センターを使用"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "検索フィルター",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "アクティブな販売者を含める",
35+
"INCLUDE_INACTIVE_SELLERS": "非アクティブな販売者を含める",
36+
"INCLUDE_TEST_SELLERS": "テスト販売者を含める",
37+
"INCLUDE_TRUST_LEVEL_100": "信頼レベル100を含める",
38+
"INCLUDE_TRUST_LEVEL_80": "信頼レベル80を含める",
39+
"INCLUDE_TRUST_LEVEL_50": "信頼レベル50を含める",
40+
"INCLUDE_TRUST_LEVEL_0": "信頼レベル0を含める"
41+
},
3242
"CONTACT_MAP_OF_PI": "Map of Pi に連絡",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "設定の保存に成功しました",

messages/ko.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "내 기기의 GPS 사용",
3030
"PREFERRED_SEARCH_CENTER": "검색 센터 사용"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "검색 필터",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "활동 중인 판매자 포함",
35+
"INCLUDE_INACTIVE_SELLERS": "비활동 중인 판매자 포함",
36+
"INCLUDE_TEST_SELLERS": "테스트 판매자 포함",
37+
"INCLUDE_TRUST_LEVEL_100": "신뢰 수준 100 포함",
38+
"INCLUDE_TRUST_LEVEL_80": "신뢰 수준 80 포함",
39+
"INCLUDE_TRUST_LEVEL_50": "신뢰 수준 50 포함",
40+
"INCLUDE_TRUST_LEVEL_0": "신뢰 수준 0 포함"
41+
},
3242
"CONTACT_MAP_OF_PI": "Map of Pi에 문의",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "환경 설정이 성공적으로 완료되었습니다",

messages/vi.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Sử dụng GPS thiết bị của tôi",
3030
"PREFERRED_SEARCH_CENTER": "Sử dụng Trung tâm tìm kiếm"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Bộ lọc tìm kiếm",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Bao gồm người bán hoạt động",
35+
"INCLUDE_INACTIVE_SELLERS": "Bao gồm người bán không hoạt động",
36+
"INCLUDE_TEST_SELLERS": "Bao gồm người bán thử nghiệm",
37+
"INCLUDE_TRUST_LEVEL_100": "Bao gồm mức độ tin cậy 100",
38+
"INCLUDE_TRUST_LEVEL_80": "Bao gồm mức độ tin cậy 80",
39+
"INCLUDE_TRUST_LEVEL_50": "Bao gồm mức độ tin cậy 50",
40+
"INCLUDE_TRUST_LEVEL_0": "Bao gồm mức độ tin cậy 0"
41+
},
3242
"CONTACT_MAP_OF_PI": "Liên hệ với Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Cập nhật tùy chọn thành công",

messages/yor-NG.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "Lo GPS ohun elo mi",
3030
"PREFERRED_SEARCH_CENTER": "Lo Ile-iṣẹ Wiwa"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "Àwọn Àlẹ̀mọ́ọ̀rùn Ìwádìí",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "Fi awọn olutaja ti n ṣiṣẹ kun",
35+
"INCLUDE_INACTIVE_SELLERS": "Fi awọn olutaja ti ko n ṣiṣẹ kun",
36+
"INCLUDE_TEST_SELLERS": "Fi awọn olutaja idanwo kun",
37+
"INCLUDE_TRUST_LEVEL_100": "Fi ipele igbẹkẹle 100 kun",
38+
"INCLUDE_TRUST_LEVEL_80": "Fi ipele igbẹkẹle 80 kun",
39+
"INCLUDE_TRUST_LEVEL_50": "Fi ipele igbẹkẹle 50 kun",
40+
"INCLUDE_TRUST_LEVEL_0": "Fi ipele igbẹkẹle 0 kun"
41+
},
3242
"CONTACT_MAP_OF_PI": "Olubasọrọ Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "Aseyori awọn ayanfẹ",

messages/zh-CN.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "使用我设备的 GPS",
3030
"PREFERRED_SEARCH_CENTER": "使用搜索中心"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "搜索筛选器",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "包含活跃卖家",
35+
"INCLUDE_INACTIVE_SELLERS": "包含非活跃卖家",
36+
"INCLUDE_TEST_SELLERS": "包含测试卖家",
37+
"INCLUDE_TRUST_LEVEL_100": "包含信任等级100",
38+
"INCLUDE_TRUST_LEVEL_80": "包含信任等级80",
39+
"INCLUDE_TRUST_LEVEL_50": "包含信任等级50",
40+
"INCLUDE_TRUST_LEVEL_0": "包含信任等级0"
41+
},
3242
"CONTACT_MAP_OF_PI": "联络 Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "偏好设置已成功保存",

messages/zh-TW.json

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"PREFERRED_DEVICE_GPS": "使用我設備的 GPS",
3030
"PREFERRED_SEARCH_CENTER": "使用搜尋中心"
3131
},
32+
"SEARCH_FILTERS_SUBHEADER": "搜尋篩選器",
33+
"SEARCH_FILTERS": {
34+
"INCLUDE_ACTIVE_SELLERS": "包含活躍賣家",
35+
"INCLUDE_INACTIVE_SELLERS": "包含非活躍賣家",
36+
"INCLUDE_TEST_SELLERS": "包含測試賣家",
37+
"INCLUDE_TRUST_LEVEL_100": "包含信任級別100",
38+
"INCLUDE_TRUST_LEVEL_80": "包含信任級別80",
39+
"INCLUDE_TRUST_LEVEL_50": "包含信任級別50",
40+
"INCLUDE_TRUST_LEVEL_0": "包含信任級別0"
41+
},
3242
"CONTACT_MAP_OF_PI": "聯絡 Map of Pi",
3343
"VALIDATION": {
3444
"SUCCESSFUL_PREFERENCES_SUBMISSION": "偏好設定已成功儲存",

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/[locale]/page.tsx

+42-32
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useTranslations } from 'next-intl';
55
import dynamic from 'next/dynamic';
66
import Image from 'next/image';
77
import Link from 'next/link';
8-
import { useContext, useEffect, useState, useRef } from 'react';
8+
import { useContext, useEffect, useState, useRef, ChangeEvent } from 'react';
99

1010
import { Button } from '@/components/shared/Forms/Buttons/Buttons';
1111
import SearchBar from '@/components/shared/SearchBar/SearchBar';
@@ -34,21 +34,22 @@ export default function Page({ params }: { params: { locale: string } }) {
3434
const [dbUserSettings, setDbUserSettings] = useState<IUserSettings | null>(null);
3535
const [zoomLevel, setZoomLevel] = useState(2);
3636
const [locationError, setLocationError] = useState<string | null>(null);
37+
const [searchBarValue, setSearchBarValue] = useState('');
3738
const [searchQuery, setSearchQuery] = useState<string>('');
3839
const [isSearchClicked, setSearchClicked] = useState(false);
3940
const [searchResults, setSearchResults] = useState<any[]>([]);
40-
const [showPopup, setShowPopup] = useState<boolean>(false)
41+
const [showPopup, setShowPopup] = useState<boolean>(false);
4142

4243
const { isSigningInUser, currentUser, autoLoginUser, reload, setReload } = useContext(AppContext);
4344

4445
useEffect(() => {
4546
// clear previous map state when findme option is changed
46-
if (reload){
47+
if (reload) {
4748
sessionStorage.removeItem('prevMapCenter');
4849
sessionStorage.removeItem('prevMapZoom');
4950
}
50-
setReload(false)
51-
setShowPopup(false)
51+
setReload(false);
52+
setShowPopup(false);
5253
checkAndAutoLoginUser(currentUser, autoLoginUser);
5354

5455
const getUserSettingsData = async () => {
@@ -61,7 +62,7 @@ export default function Page({ params }: { params: { locale: string } }) {
6162
const coordinates = {
6263
lat: data.search_map_center.coordinates[1],
6364
lng: data.search_map_center.coordinates[0],
64-
}
65+
};
6566
setSearchCenter(coordinates);
6667
if (coordinates.lat === 0 && coordinates.lng === 0) {
6768
setShowPopup(true);
@@ -70,14 +71,14 @@ export default function Page({ params }: { params: { locale: string } }) {
7071
} else {
7172
logger.warn('User Settings not found.');
7273
setDbUserSettings(null);
73-
setSearchCenter(null)
74+
setSearchCenter(null);
7475
}
7576
} catch (error) {
7677
logger.error('Error fetching user settings data:', error);
7778
}
7879
};
7980

80-
getUserSettingsData();
81+
getUserSettingsData();
8182
}, [currentUser, reload]);
8283

8384
useEffect(() => {
@@ -86,9 +87,8 @@ export default function Page({ params }: { params: { locale: string } }) {
8687
const loc = await userLocation(dbUserSettings);
8788
if (loc) {
8889
setSearchCenter({ lat: loc[0], lng: loc[1] });
89-
}
90-
else{
91-
setSearchCenter(null)
90+
} else {
91+
setSearchCenter(null);
9292
}
9393
}
9494
};
@@ -104,28 +104,29 @@ export default function Page({ params }: { params: { locale: string } }) {
104104
if (loc) {
105105
setSearchCenter({ lat: loc[0], lng: loc[1] });
106106
logger.info('User location obtained successfully on button click:', { location });
107-
}
108-
else{
109-
setSearchCenter(null)
107+
} else{
108+
setSearchCenter(null);
110109
}
111110
}
112111
};
113112

114113
// Handle search query update from SearchBar and associated results
115114
const handleSearch = async (query: string) => {
116-
setSearchQuery(query);
117-
setSearchClicked(true);
115+
if (query) {
116+
setSearchQuery(query);
117+
setSearchClicked(true);
118118

119-
// Fetch sellers based on current map bounds and search query
120-
try {
121-
const mapInstance = mapRef.current;
122-
if (mapInstance) {
123-
const bounds = mapInstance.getBounds();
124-
const results = await fetchSellers(bounds, query); // Use API to fetch sellers
125-
setSearchResults(results || []); // Update searchResults
119+
// Fetch sellers based on current map bounds and search query
120+
try {
121+
const mapInstance = mapRef.current;
122+
if (mapInstance) {
123+
const bounds = mapInstance.getBounds();
124+
const results = await fetchSellers(bounds, query); // Use API to fetch sellers
125+
setSearchResults(results || []); // Update searchResults
126+
}
127+
} catch (error) {
128+
logger.error('Failed to fetch sellers for search query.', error);
126129
}
127-
} catch (error) {
128-
logger.error('Failed to fetch sellers for search query.', error);
129130
}
130131
};
131132

@@ -139,7 +140,14 @@ export default function Page({ params }: { params: { locale: string } }) {
139140
isSearchClicked={isSearchClicked}
140141
searchResults={searchResults || []}
141142
/>
142-
<SearchBar page={'default'} onSearch={handleSearch} />
143+
<SearchBar
144+
page={'default'}
145+
onSearch={handleSearch}
146+
setSearchResults={setSearchResults}
147+
setSearchQuery={setSearchQuery}
148+
setSearchClicked={setSearchClicked}
149+
isSearchClicked={isSearchClicked}
150+
/>
143151
<div className="absolute bottom-8 z-10 right-0 left-0 m-auto pointer-events-none">
144152
<div className="w-[90%] lg:w-full lg:px-6 mx-auto flex items-center justify-between">
145153
{/* Add Seller Button */}
@@ -181,12 +189,14 @@ export default function Page({ params }: { params: { locale: string } }) {
181189
/>
182190
</div>
183191
</div>
184-
{showPopup && <ConfirmDialog
185-
show={setShowPopup}
186-
onClose={()=> setShowPopup(false)}
187-
message={t('HOME.SEARCH_CENTER_DEFAULT_MESSAGE')}
188-
url={`/map-center?entryType=search`}
189-
/>}
192+
{showPopup && (
193+
<ConfirmDialog
194+
show={setShowPopup}
195+
onClose={() => setShowPopup(false)}
196+
message={t('HOME.SEARCH_CENTER_DEFAULT_MESSAGE')}
197+
url={`/map-center?entryType=search`}
198+
/>
199+
)}
190200
</div>
191201
</>
192202
);

0 commit comments

Comments
 (0)