diff options
| author | Georgios Andreadis <G.Andreadis@student.tudelft.nl> | 2017-11-10 09:02:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-10 09:02:07 +0100 |
| commit | 46137ff8dafa045a376549527df6098e10782420 (patch) | |
| tree | 62a92af663a7432d5c413763aeb44e42284906cf /src/components | |
| parent | aef3e697f02806a47dec3843a071f8b5cd9980bc (diff) | |
| parent | 4d6532d6b642137851f9bcc1cabadbc2bd8407bd (diff) | |
Merge pull request #56 from atlarge-research/upgrade-dependencies
Upgrade dependencies
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/app/sidebars/topology/machine/UnitAddComponent.js | 3 | ||||
| -rw-r--r-- | src/components/home/ContactSection.js | 5 | ||||
| -rw-r--r-- | src/components/navigation/AppNavbar.js | 8 |
3 files changed, 7 insertions, 9 deletions
diff --git a/src/components/app/sidebars/topology/machine/UnitAddComponent.js b/src/components/app/sidebars/topology/machine/UnitAddComponent.js index 584a4360..0c903228 100644 --- a/src/components/app/sidebars/topology/machine/UnitAddComponent.js +++ b/src/components/app/sidebars/topology/machine/UnitAddComponent.js @@ -31,7 +31,8 @@ class UnitAddComponent extends React.Component { type="submit" className="btn btn-outline-primary" onClick={() => - this.props.onAdd(parseInt(this.unitSelect.value, 10))} + this.props.onAdd(parseInt(this.unitSelect.value, 10)) + } > <span className="fa fa-plus mr-2" /> Add diff --git a/src/components/home/ContactSection.js b/src/components/home/ContactSection.js index d957297a..4e640924 100644 --- a/src/components/home/ContactSection.js +++ b/src/components/home/ContactSection.js @@ -1,6 +1,5 @@ import React from "react"; import FontAwesome from "react-fontawesome"; -import Mailto from "react-mailto"; import "./ContactSection.css"; import ContentSection from "./ContentSection"; @@ -15,11 +14,11 @@ const ContactSection = () => ( </a> </div> <div className="col-4"> - <Mailto title="Contact us" email="opendc@atlarge-research.com"> + <a href="mailto:opendc@atlarge-research.com"> <FontAwesome name="envelope" size="3x" className="mb-2" /> <div className="w-100" /> opendc@atlarge-research.com - </Mailto> + </a> </div> </div> <div className="row"> diff --git a/src/components/navigation/AppNavbar.js b/src/components/navigation/AppNavbar.js index ab4b8412..1a35f85d 100644 --- a/src/components/navigation/AppNavbar.js +++ b/src/components/navigation/AppNavbar.js @@ -1,6 +1,5 @@ import React from "react"; import FontAwesome from "react-fontawesome"; -import Mailto from "react-mailto"; import { Link } from "react-router-dom"; import Navbar, { NavItem } from "./Navbar"; import "./Navbar.css"; @@ -42,15 +41,14 @@ const AppNavbar = ({ simulationId, inSimulation, fullWidth }) => ( </Link> </NavItem> <NavItem route="email"> - <Mailto + <a className="nav-link" title="Support" - email="opendc@atlarge-research.com" - headers={{ subject: "[support]" }} + href="mailto:opendc@atlarge-research.com" > <FontAwesome name="envelope" className="mr-2" /> Support - </Mailto> + </a> </NavItem> </Navbar> ); |
