Skip to content

Commit

Permalink
Fixes #145 - links to usage and documentation. Just need to update th…
Browse files Browse the repository at this point in the history
…at now :)
  • Loading branch information
damonsk committed Dec 11, 2023
1 parent 0e9302a commit 9803258
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,17 @@ function App() {
/>
<div className="row usageContainer no-gutters p-3 p-md-3">
<div id="usageToggle" className="small">
<p>
<a
href="https://docs.onlinewardleymaps.com"
target="_blank" //eslint-disable-line react/jsx-no-target-blank
rel="noopener"
>
Documentation &amp; Usage Guides
</a>
</p>
<span onClick={() => setShowUsage(!showUsage)}>
Show Usage Instructions
Show Usage Quick Reference
</span>
</div>
<br />
Expand Down
9 changes: 9 additions & 0 deletions src/components/editor/Controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ function Controls(props) {
{showLinkedEvolved ? 'Hide Evolved Links' : 'Show Evolved Links'}
</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item
eventKey="1"
rel="noreferrer noopener"
href="https://docs.onlinewardleymaps.com"
target="_blank"
>
Usage Guide
</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item
eventKey="1"
className="patron"
Expand Down
4 changes: 4 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ span.clickable {
.usageContainer {
flex-direction: column;
// padding: 20px 0 0 20px;

a {
color: white;
}
}

.patron {
Expand Down

0 comments on commit 9803258

Please sign in to comment.