Skip to content

Commit

Permalink
👍 マテリアルUIを導入した
Browse files Browse the repository at this point in the history
  • Loading branch information
isoiso-isobeage committed May 7, 2023
1 parent 4726f15 commit 2250a44
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 5 deletions.
3 changes: 3 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"private": true,
"dependencies": {
"@apollo/client": "^3.7.5",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.12.3",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './App.css'
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client'
import { Sample } from './Sample'
import { Test } from './Test'
import { BrowserRouter, Route, Routes } from 'react-router-dom'

const client = new ApolloClient({
Expand All @@ -14,6 +15,7 @@ function App() {
<ApolloProvider client={client}>
<Routes>
<Route path="/sample" element={<Sample />} />
<Route path="/test" element={<Test />} />
</Routes>
</ApolloProvider>
</BrowserRouter>
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/Test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import Button from '@mui/material/Button'

export const Test = () => {
return (
<div>
<Button variant="contained">Hello World</Button>
</div>
)
}
Loading

0 comments on commit 2250a44

Please sign in to comment.