diff --git a/ch/code/examples/code-directory.md b/ch/code/examples/code-directory.md index a3f5d53c..8081da58 100644 --- a/ch/code/examples/code-directory.md +++ b/ch/code/examples/code-directory.md @@ -69,7 +69,7 @@ 例如,假设一个域(`Domain1`)的子代码中引用另一个域(`Domain2`)的源代码,如下所示: ```typescript -import { useFoo } '../../../Domain2/hooks/useFoo' +import { useFoo } from '../../../Domain2/hooks/useFoo' ``` 如果遇到这样的 import 语句,就能很容易地意识到引用了错误的文件。 diff --git a/ch/code/examples/http.md b/ch/code/examples/http.md index cc8e0214..14f5f61d 100644 --- a/ch/code/examples/http.md +++ b/ch/code/examples/http.md @@ -21,7 +21,9 @@ export const http = { async get(url: string) { const token = await fetchToken(); - return httpLibrary.get(url); + return httpLibrary.get(url, { + headers: { Authorization: `Bearer ${token}` } + }); } }; ``` diff --git a/code/examples/code-directory.md b/code/examples/code-directory.md index 8131ccbb..571a1b9f 100644 --- a/code/examples/code-directory.md +++ b/code/examples/code-directory.md @@ -69,7 +69,7 @@ 예를 들어, 다음과 같이 한 도메인(`Domain1`)의 하위 코드에서 다른 도메인(`Domain2`)의 소스 코드를 참조한다고 생각해 볼게요. ```typescript -import { useFoo } '../../../Domain2/hooks/useFoo' +import { useFoo } from '../../../Domain2/hooks/useFoo' ``` 이런 import 문을 만난다면 잘못된 파일을 참조하고 있다는 것을 쉽게 인지할 수 있게 돼요. diff --git a/code/examples/form-fields.md b/code/examples/form-fields.md index 423da37c..a16be7e5 100644 --- a/code/examples/form-fields.md +++ b/code/examples/form-fields.md @@ -98,7 +98,7 @@ const schema = z.object({ email: z .string() .min(1, "이메일을 입력해주세요.") - .email("유효한 이메일 주소를 입력해주세요") + .email("유효한 이메일 주소를 입력해주세요.") }); export function Form() { diff --git a/code/examples/http.md b/code/examples/http.md index ca26378f..c81f3756 100644 --- a/code/examples/http.md +++ b/code/examples/http.md @@ -21,7 +21,9 @@ export const http = { async get(url: string) { const token = await fetchToken(); - return httpLibrary.get(url); + return httpLibrary.get(url, { + headers: { Authorization: `Bearer ${token}` } + }); } }; ``` diff --git a/en/code/examples/code-directory.md b/en/code/examples/code-directory.md index 6411de47..4307b524 100644 --- a/en/code/examples/code-directory.md +++ b/en/code/examples/code-directory.md @@ -69,7 +69,7 @@ If you place code files that are modified together under a single directory, it For example, consider a case where the sub-code of one domain (`Domain1`) references the source code of another domain (`Domain2`). ```typescript -import { useFoo } '../../../Domain2/hooks/useFoo' +import { useFoo } from '../../../Domain2/hooks/useFoo' ``` When you encounter such an import statement, you can easily recognize that the wrong file is being referenced. diff --git a/en/code/examples/http.md b/en/code/examples/http.md index 2e608df9..19392401 100644 --- a/en/code/examples/http.md +++ b/en/code/examples/http.md @@ -20,7 +20,9 @@ export const http = { async get(url: string) { const token = await fetchToken(); - return httpLibrary.get(url); + return httpLibrary.get(url, { + headers: { Authorization: `Bearer ${token}` } + }); } }; ``` diff --git a/ja/code/examples/code-directory.md b/ja/code/examples/code-directory.md index ea410c9e..92d32df5 100644 --- a/ja/code/examples/code-directory.md +++ b/ja/code/examples/code-directory.md @@ -69,7 +69,7 @@ 例えば、次のようにあるドメイン(`Domain1`)の下にあるコードで別のドメイン(`Domain2`)のソースコードを参照していると考えてみましょう。 ```typescript -import { useFoo } '../../../Domain2/hooks/useFoo' +import { useFoo } from '../../../Domain2/hooks/useFoo' ``` このような import 文に遭遇した場合、誤ったファイルを参照していることを容易に認識できるようになります。 diff --git a/ja/code/examples/http.md b/ja/code/examples/http.md index 87f6bf35..9f0922ea 100644 --- a/ja/code/examples/http.md +++ b/ja/code/examples/http.md @@ -21,7 +21,9 @@ export const http = { async get(url: string) { const token = await fetchToken(); - return httpLibrary.get(url); + return httpLibrary.get(url, { + headers: { Authorization: `Bearer ${token}` } + }); } }; ```