-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Draw Landscape Boundary (Complete Feature) (#475)
* chore: Base branch * feat: Reused landscape creation boundary options in update boundary (#474) Co-authored-by: Paul Schreiber <[email protected]> * feat: Added draw landscape option (#480) Co-authored-by: Paul Schreiber <[email protected]>
- Loading branch information
1 parent
600545c
commit 7ed90e1
Showing
31 changed files
with
1,272 additions
and
352 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
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
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,26 @@ | ||
import React from 'react'; | ||
|
||
import { Link } from '@mui/material'; | ||
|
||
import { useAnalytics } from 'monitoring/analytics'; | ||
|
||
// Link for external resources. It handles opening it on a new | ||
// tab and tracking the analytics event. | ||
// This is neede because of this plausible issue: | ||
// https://github.com/plausible/plausible-tracker/issues/12 | ||
const ExternalLink = ({ href, children }) => { | ||
const { trackEvent } = useAnalytics(); | ||
const onClick = event => { | ||
window.open(href, '_blank', 'noopener,noreferrer'); | ||
trackEvent('Outbound Link: Click', { props: { url: href } }); | ||
event.preventDefault(); | ||
}; | ||
|
||
return ( | ||
<Link href={href} onClick={onClick}> | ||
{children} | ||
</Link> | ||
); | ||
}; | ||
|
||
export default ExternalLink; |
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.