From 25fe7f39fd65a160ce5dd3f9fc0e5f3773631306 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sun, 17 May 2020 11:12:23 -0700 Subject: fix export not being right size --- frontend/src/components/renderers/Code.js | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'frontend/src/components/renderers/Code.js') diff --git a/frontend/src/components/renderers/Code.js b/frontend/src/components/renderers/Code.js index cfb43ab..3d84adb 100644 --- a/frontend/src/components/renderers/Code.js +++ b/frontend/src/components/renderers/Code.js @@ -1,5 +1,4 @@ import React from 'react'; -import styled from 'styled-components' import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'; import { atomOneLight, ascetic, atomOneDark, dracula, ocean } from 'react-syntax-highlighter/dist/esm/styles/hljs'; @@ -35,21 +34,24 @@ export const LANGS = Object.freeze({ 'yaml': 'yaml' }) -const RelPositioning = styled.div` - position: relative; -` - const CodeRenderer = React.forwardRef((props, ref) => { + + const Pre = (props) => { + return ( +
+        );
+    }
+
     return (
-        
-            
-                {props.content}
-            
-        
+        
+            {props.content}
+        
     );
 });
 
-- 
cgit v1.2.3