Skip to content

Commit 714985f

Browse files
committed
add mui
1 parent 9fd1854 commit 714985f

File tree

8 files changed

+880
-67
lines changed

8 files changed

+880
-67
lines changed

23-add-cart/package-lock.json

+859-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

23-add-cart/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"@mui/icons-material": "^5.11.11",
7+
"@mui/material": "^5.11.12",
8+
"@mui/styled-engine-sc": "^5.11.11",
69
"@testing-library/jest-dom": "^5.16.5",
710
"@testing-library/react": "^13.4.0",
811
"@testing-library/user-event": "^13.5.0",
@@ -12,7 +15,9 @@
1215
"@types/react-dom": "^18.0.11",
1316
"react": "^18.2.0",
1417
"react-dom": "^18.2.0",
18+
"react-router-dom": "^6.8.2",
1519
"react-scripts": "5.0.1",
20+
"styled-components": "^5.3.8",
1621
"typescript": "^4.9.5",
1722
"web-vitals": "^2.1.4"
1823
},

23-add-cart/public/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
content="Web site created using create-react-app"
1111
/>
1212
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<link
14+
rel="stylesheet"
15+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
16+
/>
17+
<link
18+
rel="stylesheet"
19+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
20+
/>
21+
1322
<!--
1423
manifest.json provides metadata used when your web app is installed on a
1524
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

23-add-cart/src/App.css

-38
This file was deleted.

23-add-cart/src/App.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import React from 'react'
2-
import logo from './logo.svg'
3-
import './App.css'
42

53
function App() {
64
return (
75
<div className='App'>
86
<header className='App-header'>
9-
<img src={logo} className='App-logo' alt='logo' />
107
<p>
118
Edit <code>src/App.tsx</code> and save to reload.
129
</p>

23-add-cart/src/index.css

-13
This file was deleted.

23-add-cart/src/index.tsx

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom/client';
3-
import './index.css';
4-
import App from './App';
5-
import reportWebVitals from './reportWebVitals';
1+
import React from 'react'
2+
import ReactDOM from 'react-dom/client'
3+
import App from './App'
4+
import reportWebVitals from './reportWebVitals'
65

7-
const root = ReactDOM.createRoot(
8-
document.getElementById('root') as HTMLElement
9-
);
6+
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
107
root.render(
118
<React.StrictMode>
129
<App />
1310
</React.StrictMode>
14-
);
11+
)
1512

1613
// If you want to start measuring performance in your app, pass a function
1714
// to log results (for example: reportWebVitals(console.log))
1815
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
19-
reportWebVitals();
16+
reportWebVitals()

23-add-cart/src/logo.svg

-1
This file was deleted.

0 commit comments

Comments
 (0)