|
|
@ -1,6 +1,7 @@ |
|
|
import { useDevice } from "../../core/stores/deviceStore.ts"; |
|
|
import { useDevice } from "../../core/stores/deviceStore.ts"; |
|
|
import { |
|
|
import { |
|
|
Dialog, |
|
|
Dialog, |
|
|
|
|
|
DialogClose, |
|
|
DialogContent, |
|
|
DialogContent, |
|
|
DialogDescription, |
|
|
DialogDescription, |
|
|
DialogHeader, |
|
|
DialogHeader, |
|
|
@ -31,6 +32,7 @@ export const LocationResponseDialog = ({ |
|
|
return ( |
|
|
return ( |
|
|
<Dialog open={open} onOpenChange={onOpenChange}> |
|
|
<Dialog open={open} onOpenChange={onOpenChange}> |
|
|
<DialogContent> |
|
|
<DialogContent> |
|
|
|
|
|
<DialogClose /> |
|
|
<DialogHeader> |
|
|
<DialogHeader> |
|
|
<DialogTitle>{`Location: ${longName} (${shortName})`}</DialogTitle> |
|
|
<DialogTitle>{`Location: ${longName} (${shortName})`}</DialogTitle> |
|
|
</DialogHeader> |
|
|
</DialogHeader> |
|
|
@ -41,8 +43,7 @@ export const LocationResponseDialog = ({ |
|
|
Coordinates:{" "} |
|
|
Coordinates:{" "} |
|
|
<a |
|
|
<a |
|
|
className="text-blue-500 dark:text-blue-400" |
|
|
className="text-blue-500 dark:text-blue-400" |
|
|
href={`https://www.openstreetmap.org/?mlat=${ |
|
|
href={`https://www.openstreetmap.org/?mlat=${location?.data.latitudeI / 1e7 |
|
|
location?.data.latitudeI / 1e7 |
|
|
|
|
|
}&mlon=${location?.data.longitudeI / 1e7}&layers=N`}
|
|
|
}&mlon=${location?.data.longitudeI / 1e7}&layers=N`}
|
|
|
target="_blank" |
|
|
target="_blank" |
|
|
rel="noreferrer" |
|
|
rel="noreferrer" |
|
|
|