Skip to content

Commit e5a79b5

Browse files
committed
fix: type errors
1 parent a5b7432 commit e5a79b5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/components/Header/BrandLogo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const BrandLogo = () => {
77
<Image
88
alt="brand logo"
99
src="/images/brand_logo.png"
10-
width="134px"
11-
height="44px"
10+
width={134}
11+
height={44}
1212
/>
1313
</Box>
1414
)

src/domain/gamedev-diary/repository/PostRepository.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const posts: PostEntity[] = [
1010
body: [
1111
{ type: 'text', body: 'デバッグ機能を楽に使えるようにデバッグメニューを実装しました。' },
1212
{ type: 'text', body: 'ここで少しアーキテクチャとか設計しなおしたくなってきているので、一旦整理のフェーズに入りたい。'},
13-
{ type: 'image', attributes: { src: '/images/pecaroid5-1.png', layout: 'responsive', width: '642', height: '512' } }
13+
{ type: 'image', attributes: { src: '/images/pecaroid5-1.png', layout: 'responsive', width: 642, height: 512, alt: 'Pecaroid' } }
1414
]
1515
},
1616
{
@@ -25,7 +25,7 @@ const posts: PostEntity[] = [
2525
{ type: 'text', body: '一旦計算してどういう方針で開発するのがいいか探っていくことにします。' },
2626
{ type: 'h2', body: 'デバッグUI' },
2727
{ type: 'text', body: 'まだまだ簡易版ですがデバッグ用のUIを追加しました。' },
28-
{ type: 'image', attributes: { src: '/images/pecaroid4-1.png', layout: 'responsive', width: '642', height: '512' } }
28+
{ type: 'image', attributes: { src: '/images/pecaroid4-1.png', layout: 'responsive', width: 642, height: 512, alt: 'Pecaroid' } }
2929
]
3030
},
3131
{
@@ -40,7 +40,7 @@ const posts: PostEntity[] = [
4040
{ type: 'text', body: 'あとこの機能のデバッグ用のシーンもとりあえず追加。' },
4141
{ type: 'text', body: '将来的にゲーム内から入力設定をできるようにしないといけない。' },
4242
{ type: 'text', body: '複数接続したときとかパッド周りはややめんどいことになりそう。' },
43-
{ type: 'image', attributes: { src: '/images/pecaroid3-1.png', layout: 'responsive', width: '642', height: '512' } }
43+
{ type: 'image', attributes: { src: '/images/pecaroid3-1.png', layout: 'responsive', width: 642, height: 512, alt: 'Pecaroid' } }
4444
]
4545
},
4646
{
@@ -49,10 +49,10 @@ const posts: PostEntity[] = [
4949
title: 'Pecaroid#2 シーンの管理',
5050
date: zonedTimeToUtc('2022-03-29T17:50:00', 'Asia/Tokyo'),
5151
body: [
52-
{ type: 'image', attributes: { src: '/images/pecaroid2-1.png', layout: 'responsive', width: '752', height: '640' } },
52+
{ type: 'image', attributes: { src: '/images/pecaroid2-1.png', layout: 'responsive', width: 752, height: 640, alt: 'Pecaroid' } },
5353
{ type: 'text', body: 'シーンの管理を実装しました。' },
5454
{ type: 'text', body: 'プレイ→メニュー→プレイみたいな時にどこからメニューに来たってのをメニューが知らなくてもいいようにスタックするようにしました。' },
55-
{ type: 'image', attributes: { src: '/images/pecaroid2-2.png', layout: 'responsive', width: '542', height: '55' } },
55+
{ type: 'image', attributes: { src: '/images/pecaroid2-2.png', layout: 'responsive', width: 542, height: 55, alt: 'Pecaroid' } },
5656
{ type: 'h2', body: 'アセット管理' },
5757
{ type: 'text', body: 'デバッグプリントを画面にしたかったのでフォントを管理したくなりました。' },
5858
{ type: 'text', body: 'プロトタイプとしてFontManagerを用意しました。' },
@@ -70,7 +70,7 @@ const posts: PostEntity[] = [
7070
{ type: 'text', body: 'ウィンドウの管理はApplicationでやるようにしたので、イベント処理や画面クリアなどはApplicationでやらせる。' },
7171
{ type: 'text', body: 'ゲームの更新処理と描画処理をゲームクラスに担わせた。' },
7272
{ type: 'text', body: 'と言っても中は空なんだけど…。' },
73-
{ type: 'image', attributes: { src: '/images/pecaroid1-1.png', layout: 'responsive', width: '752', height: '620' } },
73+
{ type: 'image', attributes: { src: '/images/pecaroid1-1.png', layout: 'responsive', width: 752, height: 620, alt: 'Pecaroid' } },
7474
{ type: 'h2', body: 'その他' },
7575
{ type: 'text', body: 'マルチプラットフォーム対応する上でビルドも楽にしたかったのでCMakeを導入。' },
7676
{ type: 'text', body: 'ドキュメントを残した方がいいのでDoxygenも導入。' },

src/pages/top/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TopPage = () => {
1414
</Head>
1515
<Board>
1616
<Box display="flex" justifyContent="center">
17-
<Image alt="logo" src="/images/logo.png" width="332" height="32" />
17+
<Image alt="logo" src="/images/logo.png" width={332} height={32} />
1818
</Box>
1919

2020
<Box mt="16">

0 commit comments

Comments
 (0)