From 54bd7df900316504e4403bc94cffd92930a6c763 Mon Sep 17 00:00:00 2001
From: August Skare <post@augustskare.no>
Date: Fri, 16 Nov 2018 11:05:30 +0100
Subject: fix linting + code syntax for statless components

---
 packages/dev-tools-pages/ts/globalStyles.tsx | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

(limited to 'packages/dev-tools-pages/ts/globalStyles.tsx')

diff --git a/packages/dev-tools-pages/ts/globalStyles.tsx b/packages/dev-tools-pages/ts/globalStyles.tsx
index c5db93f6a..1a571c0cb 100644
--- a/packages/dev-tools-pages/ts/globalStyles.tsx
+++ b/packages/dev-tools-pages/ts/globalStyles.tsx
@@ -1,11 +1,10 @@
+import hljsStyles from 'highlight.js/styles/github-gist.css';
 import { createGlobalStyle } from 'styled-components';
-import { media } from './variables';
 import styledNormalize from 'styled-normalize';
-import hljsStyles from 'highlight.js/styles/github-gist.css';
 
-import { withContext } from 'ts/components/withContext';
+import { media } from 'ts/variables';
 
-const BaseStyles = createGlobalStyle`
+const GlobalStyles = createGlobalStyle`
     ${styledNormalize}
     ${hljsStyles}
 
@@ -35,11 +34,11 @@ const BaseStyles = createGlobalStyle`
         font-size: 100%;
         box-sizing: border-box;
     }
-    
+
     *, *::before, *::after {
         box-sizing: inherit;
     }
-    
+
     body {
         font-family: "Maison Neue", system-ui, sans-serif;
         font-weight: 300;
@@ -55,14 +54,14 @@ const BaseStyles = createGlobalStyle`
     }
 
     a:not([class]) {
-        color: ${(props: any) => props.colors.type};
-        text-decoration: none; 
+        color: black;
+        text-decoration: none;
 
         &:hover {
-            color: ${(props: any) => props.colors.type_alt};
+            color: black;
         }
     }
-    
+
     h1, h2, h3, h4 {
         font-weight: 500;
         margin: 0;
@@ -84,4 +83,4 @@ const BaseStyles = createGlobalStyle`
     }
 `;
 
-export default withContext(BaseStyles);
+export { GlobalStyles };
-- 
cgit v1.2.3

