Improving RteViewer.
This commit is contained in:
1 parent
c1fe37d0a6
commit
44ce641d6a
6 files changed
+77
-17
No files matched your search
@@ -130,20 +130,6 @@ const Infos: Component<{}> = (props) => {
|
||||
setOpen(false);
|
||||
};
|
||||
|
||||
const formatLength = (length: number) => {
|
||||
if (length > 1000) {
|
||||
const l = length / 1000;
|
||||
return ` ${l.toLocaleString(undefined, {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
})} km`;
|
||||
}
|
||||
return ` ${length.toLocaleString(undefined, {
|
||||
minimumFractionDigits: 0,
|
||||
maximumFractionDigits: 0,
|
||||
})} m`;
|
||||
};
|
||||
|
||||
return (
|
||||
<Dialog closeHandler={handleClick} open={open()} title={t('nearby')}>
|
||||
<Stack
|
||||
|
||||
Reference in new issue
Block a user