Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -14,13 +14,13 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import maplibregl from 'maplibre-gl';
|
||||
import React from "react";
|
||||
import maplibregl from "maplibre-gl";
|
||||
|
||||
import { _t } from '../../../languageHandler';
|
||||
import AccessibleButton from '../elements/AccessibleButton';
|
||||
import { Icon as PlusIcon } from '../../../../res/img/element-icons/plus-button.svg';
|
||||
import { Icon as MinusIcon } from '../../../../res/img/element-icons/minus-button.svg';
|
||||
import { _t } from "../../../languageHandler";
|
||||
import AccessibleButton from "../elements/AccessibleButton";
|
||||
import { Icon as PlusIcon } from "../../../../res/img/element-icons/plus-button.svg";
|
||||
import { Icon as MinusIcon } from "../../../../res/img/element-icons/minus-button.svg";
|
||||
|
||||
interface Props {
|
||||
map: maplibregl.Map;
|
||||
|
@ -35,24 +35,26 @@ const ZoomButtons: React.FC<Props> = ({ map }) => {
|
|||
map.zoomOut();
|
||||
};
|
||||
|
||||
return <div className="mx_ZoomButtons">
|
||||
<AccessibleButton
|
||||
onClick={onZoomIn}
|
||||
data-test-id='map-zoom-in-button'
|
||||
title={_t("Zoom in")}
|
||||
className='mx_ZoomButtons_button'
|
||||
>
|
||||
<PlusIcon className='mx_ZoomButtons_icon' />
|
||||
</AccessibleButton>
|
||||
<AccessibleButton
|
||||
onClick={onZoomOut}
|
||||
data-test-id='map-zoom-out-button'
|
||||
title={_t("Zoom out")}
|
||||
className='mx_ZoomButtons_button'
|
||||
>
|
||||
<MinusIcon className='mx_ZoomButtons_icon' />
|
||||
</AccessibleButton>
|
||||
</div>;
|
||||
return (
|
||||
<div className="mx_ZoomButtons">
|
||||
<AccessibleButton
|
||||
onClick={onZoomIn}
|
||||
data-test-id="map-zoom-in-button"
|
||||
title={_t("Zoom in")}
|
||||
className="mx_ZoomButtons_button"
|
||||
>
|
||||
<PlusIcon className="mx_ZoomButtons_icon" />
|
||||
</AccessibleButton>
|
||||
<AccessibleButton
|
||||
onClick={onZoomOut}
|
||||
data-test-id="map-zoom-out-button"
|
||||
title={_t("Zoom out")}
|
||||
className="mx_ZoomButtons_button"
|
||||
>
|
||||
<MinusIcon className="mx_ZoomButtons_icon" />
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ZoomButtons;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue