Skip to content

Commit

Permalink
fix: pass default icon to component
Browse files Browse the repository at this point in the history
  • Loading branch information
ahennr committed Jan 24, 2025
1 parent e2d03ff commit bbf3abb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Button/RotationButton/RotationButton.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from 'react';

import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import useOlInteraction from '@terrestris/react-util/dist/Hooks/useOlInteraction/useOlInteraction';

import { DragRotateAndZoom } from 'ol/interaction.js';
import React from 'react';

import useOlInteraction from '@terrestris/react-util/dist/Hooks/useOlInteraction/useOlInteraction';

import ToggleButton, {
ToggleButtonProps
Expand All @@ -28,7 +31,7 @@ export const RotationButton: React.FC<RotationButtonProps> = ({
<ToggleButton
tooltip={tooltip}
icon={<FontAwesomeIcon icon={faArrowsRotate} />}
pressedIcon={<FontAwesomeIcon icon={faArrowsRotate} />}
pressedIcon={pressedIcon}
pressed={pressed}
tooltipProps={tooltipProps}
{...passThroughProps}
Expand Down

0 comments on commit bbf3abb

Please sign in to comment.