File tree Expand file tree Collapse file tree 6 files changed +8
-19
lines changed Expand file tree Collapse file tree 6 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 1818 "@vitejs/plugin-react" : " 4.2.1" ,
1919 "prettier" : " 3.2.5" ,
2020 "typescript" : " 5.4.5" ,
21- "vite" : " 5.2.9" ,
22- "vite-tsconfig-paths" : " 4.3.2"
21+ "vite" : " 5.2.9"
2322 }
2423}
Original file line number Diff line number Diff line change 1-
2- import { UserList } from 'src/components/UserList/UserList'
1+ import { UserList } from '../UserList/UserList'
32import styles from './FriendRequestForm.module.css'
43
5- const FriendRequestForm = ( ) => {
4+ export const FriendRequestForm = ( ) => {
65 return (
76 < form className = { styles . wrapper } >
87 < h2 className = { styles . header } > 友達リクエストの送信先を選択してください</ h2 >
@@ -17,5 +16,3 @@ const FriendRequestForm = () => {
1716 </ form >
1817 )
1918}
20-
21- export { FriendRequestForm }
Original file line number Diff line number Diff line change 11// Data Source
22import { users } from '../../data/users'
3- import { getUsers } from 'src /data/getUsers'
3+ import { getUsers } from '../.. /data/getUsers'
44
55// CSS Modules
66import styles from './UserList.module.css'
77// styled-components
88import styled from 'styled-components'
99
10- const UserList = ( ) => {
10+ export const UserList = ( ) => {
1111 return < > TODO: ユーザーリストの実装</ >
1212}
13-
14- export { UserList }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client'
33
44import 'ress'
55
6- import { FriendRequestForm } from 'src /components/FriendRequestForm/FriendRequestForm'
6+ import { FriendRequestForm } from '. /components/FriendRequestForm/FriendRequestForm'
77
88ReactDOM . createRoot ( document . getElementById ( 'root' ) as HTMLElement ) . render (
99 < React . StrictMode >
Original file line number Diff line number Diff line change 1818 "isolatedModules" : true ,
1919 "jsx" : " react-jsx" ,
2020 "allowSyntheticDefaultImports" : true ,
21- "noFallthroughCasesInSwitch" : true ,
22- "paths" : {
23- "src/*" : [" ./src/*" ],
24- }
21+ "noFallthroughCasesInSwitch" : true
2522 },
2623 "exclude" : [" node_modules" ],
2724 "include" : [" **/*.ts" , " **/*.tsx" ]
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vite'
2- import tsconfigPaths from 'vite-tsconfig-paths'
32import react from '@vitejs/plugin-react'
43
5-
64export default defineConfig ( {
7- plugins : [ react ( ) , tsconfigPaths ( ) ] ,
5+ plugins : [ react ( ) ] ,
86} )
You can’t perform that action at this time.
0 commit comments