Rename the Dashboard
This commit is contained in:
parent
907b34c496
commit
86ffdfa12c
|
@ -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();
|
||||||
});
|
});
|
|
@ -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;
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue