Rename the Dashboard

This commit is contained in:
Savanni D'Gerinel 2024-08-20 12:10:01 -04:00
parent 907b34c496
commit 86ffdfa12c
4 changed files with 7 additions and 7 deletions

View File

@ -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(<App />);
render(<Dashboard />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});

View File

@ -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 = () => <div className="palette">
<div className="item-15" />
</div>
const App = () => {
const Dashboard = () => {
return (
<div className="app">
<Palette />
@ -101,4 +101,4 @@ const App = () => {
);
}
export default App;
export default Dashboard;

View File

@ -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(
<React.StrictMode>
<App />
<Dashboard />
</React.StrictMode>
);