-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve popup UI * Update PopupFooter css
- Loading branch information
Showing
35 changed files
with
559 additions
and
295 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 |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
"Popover", | ||
"Toggler", | ||
"Unmount", | ||
"borderless", | ||
"bundlewatch", | ||
"centered", | ||
"codeql", | ||
|
20 changes: 20 additions & 0 deletions
20
src/components/ControlButtons/CloseControlButton/CloseControlButton.tsx
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,20 @@ | ||
import React, { memo } from 'react'; | ||
import { FaTimes } from 'react-icons/fa'; | ||
import { | ||
ControlButton, | ||
ControlButtonProps, | ||
} from '../ControlButton/ControlButton'; | ||
import STYLES from '../ControlButton/ControlButton.module.scss'; | ||
|
||
export const CloseControlButton: React.FunctionComponent<Omit< | ||
ControlButtonProps, | ||
'className' | 'buttonClassName' | ||
>> = memo((props) => ( | ||
<ControlButton | ||
className={STYLES.ControlButton__close} | ||
buttonClassName={STYLES['ControlButton__close-button']} | ||
{...props} | ||
> | ||
<FaTimes /> | ||
</ControlButton> | ||
)); |
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
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
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
23 changes: 23 additions & 0 deletions
23
src/components/ControlButtons/FullScreenControlButton/FullScreenControlButton.tsx
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,23 @@ | ||
import Map from 'ol/Map'; | ||
import React from 'react'; | ||
import { MdZoomOutMap } from 'react-icons/md'; | ||
import { | ||
ControlButton, | ||
ControlButtonProps, | ||
} from '../ControlButton/ControlButton'; | ||
|
||
export interface FullScreenControlButtonProps { | ||
map: Map; | ||
} | ||
|
||
export const FullScreenControlButton: React.FunctionComponent< | ||
FullScreenControlButtonProps & Omit<ControlButtonProps, 'onClick'> | ||
> = (props) => ( | ||
<ControlButton | ||
{...props} | ||
tooltipPlacement="right" | ||
onClick={() => alert('fullscreen')} | ||
> | ||
<MdZoomOutMap /> | ||
</ControlButton> | ||
); |
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
File renamed without changes
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
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
File renamed without changes
14 changes: 14 additions & 0 deletions
14
src/components/ControlButtons/NextPointControlButton/NextPointControlButton.tsx
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,14 @@ | ||
import React, { memo } from 'react'; | ||
import { FaCaretRight } from 'react-icons/fa'; | ||
import { | ||
ControlButton, | ||
ControlButtonProps, | ||
} from '../ControlButton/ControlButton'; | ||
|
||
export const NextPointControlButton: React.FunctionComponent<ControlButtonProps> = memo( | ||
(props) => ( | ||
<ControlButton {...props}> | ||
<FaCaretRight /> | ||
</ControlButton> | ||
) | ||
); |
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
14 changes: 14 additions & 0 deletions
14
src/components/ControlButtons/PrevPointControlButton/PrevPointControlButton.tsx
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,14 @@ | ||
import React, { memo } from 'react'; | ||
import { FaCaretLeft } from 'react-icons/fa'; | ||
import { | ||
ControlButton, | ||
ControlButtonProps, | ||
} from '../ControlButton/ControlButton'; | ||
|
||
export const PrevPointControlButton: React.FunctionComponent<ControlButtonProps> = memo( | ||
(props) => ( | ||
<ControlButton {...props}> | ||
<FaCaretLeft /> | ||
</ControlButton> | ||
) | ||
); |
4 changes: 2 additions & 2 deletions
4
src/components/ControlButtons/RotateNorthControl/RotateNorthControl.js
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
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.