Start on a GM dashboard application #246
|
@ -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();
|
||||
});
|
|
@ -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;
|
|
@ -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>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue