From ed14f2fc853a8e2c75175a3964f515a99b2678d0 Mon Sep 17 00:00:00 2001
From: Luis Felipe Risch <lfr20@inf.ufpr.br>
Date: Fri, 19 Mar 2021 12:37:29 -0300
Subject: [PATCH] change class to function

---
 src/Admin/Pages/Pages/SubPages/Inframe.js | 35 +++++++++++------------
 1 file changed, 16 insertions(+), 19 deletions(-)

diff --git a/src/Admin/Pages/Pages/SubPages/Inframe.js b/src/Admin/Pages/Pages/SubPages/Inframe.js
index cb261c41..ddd5c407 100644
--- a/src/Admin/Pages/Pages/SubPages/Inframe.js
+++ b/src/Admin/Pages/Pages/SubPages/Inframe.js
@@ -17,24 +17,21 @@ You should have received a copy of the GNU Affero General Public License
 along with Plataforma Integrada MEC.  If not, see <http://www.gnu.org/licenses/>.*/
 
 import React from 'react';
-import Welcome from '../../../Components/Components/Welcome'; 
+import Welcome from '../../../Components/Components/Welcome';
 
-//This file show the charts
-
-export default class IframeComponent extends React.Component {
-    render() {
-        return (
-            <div>
-                <Welcome/>
-                <div style={{height : '1em'}}></div>
-                <iframe
-                    src='https://metabase.c3sl.ufpr.br/public/dashboard/8ada315d-b8df-4b18-b7fb-d06b0ac64623'
-                    height='800px'
-                    width='100%' 
-                    // allowTransparency={true} 
-                    frameBorder={0}
-                /> 
-            </div>
-        )
-    }
+const IframeComponent = () => {
+    return (
+        <div>
+            <Welcome />
+            <div style={{ height: '1em' }}></div>
+            <iframe
+                src='https://metabase.c3sl.ufpr.br/public/dashboard/8ada315d-b8df-4b18-b7fb-d06b0ac64623'
+                height='800px'
+                width='100%'
+                // allowTransparency={true} 
+                frameBorder={0}
+            />
+        </div>
+    )
 }
+export default IframeComponent;
-- 
GitLab