Rename the Dashboard

This commit is contained in:
Savanni D'Gerinel 2024-08-20 12:10:01 -04:00 committed by savanni
parent 0535b6da5a
commit aee4528fb3
4 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
import React from 'react'; import React from 'react';
import { render, screen } from '@testing-library/react'; import { render, screen } from '@testing-library/react';
import App from './App'; import Dashboard from './Dashboard';
test('renders learn react link', () => { test('renders learn react link', () => {
render(<App />); render(<Dashboard />);
const linkElement = screen.getByText(/learn react/i); const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument(); expect(linkElement).toBeInTheDocument();
}); });

View File

@ -1,4 +1,4 @@
import './App.css'; import './Dashboard.css';
import Card from './components/Card/Card'; import Card from './components/Card/Card';
import Launcher from './components/Launcher/Launcher'; import Launcher from './components/Launcher/Launcher';
import LauncherGroup from './components/LauncherGroup/LauncherGroup'; import LauncherGroup from './components/LauncherGroup/LauncherGroup';
@ -84,7 +84,7 @@ const Palette3 = () => <div className="palette">
<div className="item-15" /> <div className="item-15" />
</div> </div>
const App = () => { const Dashboard = () => {
return ( return (
<div className="app"> <div className="app">
<Palette /> <Palette />
@ -101,4 +101,4 @@ const App = () => {
); );
} }
export default App; export default Dashboard;

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom/client'; import ReactDOM from 'react-dom/client';
import './index.css'; import './index.css';
import App from './App'; import Dashboard from './Dashboard';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot( const root = ReactDOM.createRoot(
@ -9,7 +9,7 @@ const root = ReactDOM.createRoot(
); );
root.render( root.render(
<React.StrictMode> <React.StrictMode>
<App /> <Dashboard />
</React.StrictMode> </React.StrictMode>
); );