From 86ffdfa12c3711a28a058de0ee6560c4e660aede Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Tue, 20 Aug 2024 12:10:01 -0400 Subject: [PATCH] Rename the Dashboard --- gm-dash/ui/src/{App.css => Dashboard.css} | 0 gm-dash/ui/src/{App.test.tsx => Dashboard.test.tsx} | 4 ++-- gm-dash/ui/src/{App.tsx => Dashboard.tsx} | 6 +++--- gm-dash/ui/src/index.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename gm-dash/ui/src/{App.css => Dashboard.css} (100%) rename gm-dash/ui/src/{App.test.tsx => Dashboard.test.tsx} (78%) rename gm-dash/ui/src/{App.tsx => Dashboard.tsx} (96%) diff --git a/gm-dash/ui/src/App.css b/gm-dash/ui/src/Dashboard.css similarity index 100% rename from gm-dash/ui/src/App.css rename to gm-dash/ui/src/Dashboard.css diff --git a/gm-dash/ui/src/App.test.tsx b/gm-dash/ui/src/Dashboard.test.tsx similarity index 78% rename from gm-dash/ui/src/App.test.tsx rename to gm-dash/ui/src/Dashboard.test.tsx index 2a68616..e3373a1 100644 --- a/gm-dash/ui/src/App.test.tsx +++ b/gm-dash/ui/src/Dashboard.test.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import App from './App'; +import Dashboard from './Dashboard'; test('renders learn react link', () => { - render(); + render(); const linkElement = screen.getByText(/learn react/i); expect(linkElement).toBeInTheDocument(); }); diff --git a/gm-dash/ui/src/App.tsx b/gm-dash/ui/src/Dashboard.tsx similarity index 96% rename from gm-dash/ui/src/App.tsx rename to gm-dash/ui/src/Dashboard.tsx index c0e6879..9ef1e8f 100644 --- a/gm-dash/ui/src/App.tsx +++ b/gm-dash/ui/src/Dashboard.tsx @@ -1,4 +1,4 @@ -import './App.css'; +import './Dashboard.css'; import Card from './components/Card/Card'; import Launcher from './components/Launcher/Launcher'; import LauncherGroup from './components/LauncherGroup/LauncherGroup'; @@ -84,7 +84,7 @@ const Palette3 = () =>
-const App = () => { +const Dashboard = () => { return (
@@ -101,4 +101,4 @@ const App = () => { ); } -export default App; +export default Dashboard; diff --git a/gm-dash/ui/src/index.tsx b/gm-dash/ui/src/index.tsx index 032464f..2cf9f1e 100644 --- a/gm-dash/ui/src/index.tsx +++ b/gm-dash/ui/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import App from './App'; +import Dashboard from './Dashboard'; import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot( @@ -9,7 +9,7 @@ const root = ReactDOM.createRoot( ); root.render( - + );