summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-02-20 17:45:27 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-02-20 17:45:27 +0100
commit39cc3f0cd07fca46b6cf671145ffb088736d474d (patch)
treee45f0799b1999dd2fe25c04257136d3cd8891d58 /app
parent67402a251a65e238349d2bae19661a21f6c19ad0 (diff)
downloadmullvadvpn-39cc3f0cd07fca46b6cf671145ffb088736d474d.tar.xz
mullvadvpn-39cc3f0cd07fca46b6cf671145ffb088736d474d.zip
Minor formatting fixes
Diffstat (limited to 'app')
-rw-r--r--app/components/styled/AppButton.js10
-rw-r--r--app/components/styled/CellButton.js2
2 files changed, 6 insertions, 6 deletions
diff --git a/app/components/styled/AppButton.js b/app/components/styled/AppButton.js
index 4f6d45806f..f868d33ce0 100644
--- a/app/components/styled/AppButton.js
+++ b/app/components/styled/AppButton.js
@@ -97,7 +97,7 @@ class BaseButton extends Component {
{...otherProps}>
{
React.Children.map(children, (node) => {
- if (React.isValidElement(node)){
+ if (React.isValidElement(node)) {
let updatedProps = {};
if(node.type.name === 'Label') {
@@ -119,18 +119,18 @@ class BaseButton extends Component {
}
}
-export class RedButton extends BaseButton{
+export class RedButton extends BaseButton {
backgroundStyle = () => this.state.hovered ? styles.redHover : styles.red;
}
-export class GreenButton extends BaseButton{
+export class GreenButton extends BaseButton {
backgroundStyle = () => this.state.hovered ? styles.greenHover : styles.green;
}
-export class BlueButton extends BaseButton{
+export class BlueButton extends BaseButton {
backgroundStyle = () => this.state.hovered ? styles.blueHover : styles.blue;
}
-export class TransparentButton extends BaseButton{
+export class TransparentButton extends BaseButton {
backgroundStyle = () => this.state.hovered ? styles.transparentHover : styles.transparent;
} \ No newline at end of file
diff --git a/app/components/styled/CellButton.js b/app/components/styled/CellButton.js
index 7309180241..fe3042709a 100644
--- a/app/components/styled/CellButton.js
+++ b/app/components/styled/CellButton.js
@@ -89,7 +89,7 @@ export default class CellButton extends Component {
{...otherProps}>
{
React.Children.map(children, (node) => {
- if (React.isValidElement(node)){
+ if (React.isValidElement(node)) {
let updatedProps = {};
if(node.type.name === 'Label') {