-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into feature/893/filter_url_param
- Loading branch information
Showing
8 changed files
with
782 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
i18n: { | ||
defaultLocale: "tr", | ||
locales: ["en", "tr"], | ||
localePath: path.resolve("./public/locales"), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ module.exports = withPWA({ | |
module.exports = { | ||
images: { | ||
loader: "akamai", | ||
path: "", | ||
path: ".", | ||
}, | ||
i18n, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import Map from "@/components/UI/Map/Map"; | ||
import useDefaultZoom from "@/hooks/useDefaultZoom"; | ||
import useDefaultCenter from "@/hooks/useDefaultCenter"; | ||
import { useDevice } from "@/stores/mapStore"; | ||
import { | ||
DEFAULT_MIN_ZOOM_DESKTOP, | ||
DEFAULT_MIN_ZOOM_MOBILE, | ||
} from "@/components/UI/Map/utils"; | ||
import { TileLayer } from "react-leaflet"; | ||
|
||
const NHome = () => { | ||
const { defaultZoom } = useDefaultZoom(); | ||
const { defaultCenter } = useDefaultCenter(); | ||
const device = useDevice(); | ||
return ( | ||
<> | ||
<Map | ||
center={defaultCenter} | ||
zoom={defaultZoom} | ||
minZoom={ | ||
device === "desktop" | ||
? DEFAULT_MIN_ZOOM_DESKTOP | ||
: DEFAULT_MIN_ZOOM_MOBILE | ||
} | ||
zoomSnap={1} | ||
zoomDelta={1} | ||
preferCanvas | ||
maxBoundsViscosity={1} | ||
maxZoom={18} | ||
whenReady={(map: any) => { | ||
setTimeout(() => { | ||
map.target.invalidateSize(); | ||
}, 100); | ||
}} | ||
> | ||
<TileLayer | ||
url={`https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&apistyle=s.e%3Al.i%7Cp.v%3Aoff%2Cs.t%3A3%7Cs.e%3Ag%7C`} | ||
/> | ||
</Map> | ||
</> | ||
); | ||
}; | ||
export default NHome; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.