This commit is contained in:
Kirill
2026-05-23 17:31:07 +05:00
parent d660663b72
commit bd9bdc0352
3 changed files with 5 additions and 6 deletions
@@ -128,6 +128,7 @@ export function AddressMapPicker(props: {
const lat = Number(r.lat) const lat = Number(r.lat)
const lng = Number(r.lon) const lng = Number(r.lon)
if (!Number.isFinite(lat) || !Number.isFinite(lng)) return if (!Number.isFinite(lat) || !Number.isFinite(lng)) return
mapRef.current?.flyTo({ center: [lng, lat], zoom: 13, duration: 800 })
void pick({ lat, lng }) void pick({ lat, lng })
}} }}
> >
+4 -6
View File
@@ -35,12 +35,8 @@ export function AboutPage() {
<Stack spacing={3}> <Stack spacing={3}>
<Paper variant="outlined" sx={{ p: 2, borderRadius: 2 }}> <Paper variant="outlined" sx={{ p: 2, borderRadius: 2 }}>
<Typography variant="h6" gutterBottom> <Typography variant="h6" gutterBottom>
Контакты и самовывоз Контакты
</Typography> </Typography>
<Typography sx={{ mb: 1 }}>
Забрать заказ можно по адресу самовывоза (координаты указаны на карте ниже):
</Typography>
<Typography sx={{ whiteSpace: 'pre-wrap', fontWeight: 600 }}>{PICKUP_ADDRESS_FULL}</Typography>
<Typography variant="body2" sx={{ mt: 1 }}> <Typography variant="body2" sx={{ mt: 1 }}>
Email:{' '} Email:{' '}
<Link href={`mailto:${STORE_EMAIL}`} underline="hover"> <Link href={`mailto:${STORE_EMAIL}`} underline="hover">
@@ -58,6 +54,8 @@ export function AboutPage() {
ВКонтакте ВКонтакте
</Link> </Link>
</Typography> </Typography>
<Typography sx={{ mb: 1, mt: 2 }}>Забрать заказ можно по адресу самовывоза:</Typography>
<Typography sx={{ whiteSpace: 'pre-wrap', fontWeight: 600 }}>{PICKUP_ADDRESS_FULL}</Typography>
<Typography color="text.secondary" variant="body2" sx={{ mt: 1 }}> <Typography color="text.secondary" variant="body2" sx={{ mt: 1 }}>
Перед визитом мы свяжемся с вами и согласуем время чтобы заказ точно был готов к выдаче. Перед визитом мы свяжемся с вами и согласуем время чтобы заказ точно был готов к выдаче.
</Typography> </Typography>
@@ -75,7 +73,7 @@ export function AboutPage() {
> >
<Map <Map
mapLib={maplibregl} mapLib={maplibregl}
initialViewState={{ latitude: lat, longitude: lng, zoom: 16 }} initialViewState={{ latitude: lat, longitude: lng, zoom: 15 }}
style={{ width: '100%', height: 380 }} style={{ width: '100%', height: 380 }}
mapStyle={rasterStyle} mapStyle={rasterStyle}
scrollZoom={false} scrollZoom={false}
Binary file not shown.