summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/home/ContactSection.js5
-rw-r--r--src/components/navigation/AppNavbar.js8
-rw-r--r--src/containers/auth/Login.js4
-rw-r--r--src/reducers/construction-mode.js11
4 files changed, 15 insertions, 13 deletions
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>
);
diff --git a/src/containers/auth/Login.js b/src/containers/auth/Login.js
index de12f815..28e95963 100644
--- a/src/containers/auth/Login.js
+++ b/src/containers/auth/Login.js
@@ -33,7 +33,9 @@ class LoginContainer extends React.Component {
onFailure={this.onAuthResponse.bind(this)}
className="login btn btn-primary"
>
- <span className="fa fa-google" /> <span>Login with Google</span>
+ <span>
+ <span className="fa fa-google" /> Login with Google
+ </span>
</GoogleLogin>
);
}
diff --git a/src/reducers/construction-mode.js b/src/reducers/construction-mode.js
index c4c0c010..f58684e6 100644
--- a/src/reducers/construction-mode.js
+++ b/src/reducers/construction-mode.js
@@ -1,12 +1,15 @@
-import {combineReducers} from "redux";
-import {OPEN_EXPERIMENT_SUCCEEDED} from "../actions/experiments";
-import {GO_DOWN_ONE_INTERACTION_LEVEL} from "../actions/interaction-level";
+import { combineReducers } from "redux";
+import { OPEN_EXPERIMENT_SUCCEEDED } from "../actions/experiments";
+import { GO_DOWN_ONE_INTERACTION_LEVEL } from "../actions/interaction-level";
import {
CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED,
FINISH_NEW_ROOM_CONSTRUCTION,
START_NEW_ROOM_CONSTRUCTION_SUCCEEDED
} from "../actions/topology/building";
-import {START_RACK_CONSTRUCTION, STOP_RACK_CONSTRUCTION} from "../actions/topology/room";
+import {
+ START_RACK_CONSTRUCTION,
+ STOP_RACK_CONSTRUCTION
+} from "../actions/topology/room";
export function currentRoomInConstruction(state = -1, action) {
switch (action.type) {