File tree 6 files changed +8
-19
lines changed
6 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 18
18
"@vitejs/plugin-react" : " 4.2.1" ,
19
19
"prettier" : " 3.2.5" ,
20
20
"typescript" : " 5.4.5" ,
21
- "vite" : " 5.2.9" ,
22
- "vite-tsconfig-paths" : " 4.3.2"
21
+ "vite" : " 5.2.9"
23
22
}
24
23
}
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'
3
2
import styles from './FriendRequestForm.module.css'
4
3
5
- const FriendRequestForm = ( ) => {
4
+ export const FriendRequestForm = ( ) => {
6
5
return (
7
6
< form className = { styles . wrapper } >
8
7
< h2 className = { styles . header } > 友達リクエストの送信先を選択してください</ h2 >
@@ -17,5 +16,3 @@ const FriendRequestForm = () => {
17
16
</ form >
18
17
)
19
18
}
20
-
21
- export { FriendRequestForm }
Original file line number Diff line number Diff line change 1
1
// Data Source
2
2
import { users } from '../../data/users'
3
- import { getUsers } from 'src /data/getUsers'
3
+ import { getUsers } from '../.. /data/getUsers'
4
4
5
5
// CSS Modules
6
6
import styles from './UserList.module.css'
7
7
// styled-components
8
8
import styled from 'styled-components'
9
9
10
- const UserList = ( ) => {
10
+ export const UserList = ( ) => {
11
11
return < > TODO: ユーザーリストの実装</ >
12
12
}
13
-
14
- export { UserList }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client'
3
3
4
4
import 'ress'
5
5
6
- import { FriendRequestForm } from 'src /components/FriendRequestForm/FriendRequestForm'
6
+ import { FriendRequestForm } from '. /components/FriendRequestForm/FriendRequestForm'
7
7
8
8
ReactDOM . createRoot ( document . getElementById ( 'root' ) as HTMLElement ) . render (
9
9
< React . StrictMode >
Original file line number Diff line number Diff line change 18
18
"isolatedModules" : true ,
19
19
"jsx" : " react-jsx" ,
20
20
"allowSyntheticDefaultImports" : true ,
21
- "noFallthroughCasesInSwitch" : true ,
22
- "paths" : {
23
- "src/*" : [" ./src/*" ],
24
- }
21
+ "noFallthroughCasesInSwitch" : true
25
22
},
26
23
"exclude" : [" node_modules" ],
27
24
"include" : [" **/*.ts" , " **/*.tsx" ]
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vite'
2
- import tsconfigPaths from 'vite-tsconfig-paths'
3
2
import react from '@vitejs/plugin-react'
4
3
5
-
6
4
export default defineConfig ( {
7
- plugins : [ react ( ) , tsconfigPaths ( ) ] ,
5
+ plugins : [ react ( ) ] ,
8
6
} )
You can’t perform that action at this time.
0 commit comments