Skip to content

Commit ff38d35

Browse files
committed
フォーマット
1 parent 83b6a2d commit ff38d35

4 files changed

Lines changed: 28 additions & 25 deletions

File tree

frontend/src/features/diagnosis/components/BaselineSurvey.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function BaselineSurvey() {
2727
const playSE = useCallback((path: string) => {
2828
const audio = new Audio(path);
2929
audio.volume = 0.5;
30-
audio.play().catch(() => { });
30+
audio.play().catch(() => {});
3131
}, []);
3232

3333
// BGMの初期化と再生管理
@@ -38,7 +38,7 @@ export default function BaselineSurvey() {
3838
bgmRef.current = bgm;
3939

4040
const playBGM = () => {
41-
bgm.play().catch(() => { });
41+
bgm.play().catch(() => {});
4242
window.removeEventListener('click', playBGM);
4343
};
4444

@@ -163,8 +163,9 @@ export default function BaselineSurvey() {
163163
{Array.from({ length: totalQuestions }).map((_, i) => (
164164
<div
165165
key={i}
166-
className={`h-6 w-8 rounded-lg transition-colors ${i <= currentIndex ? 'bg-rose-400' : 'bg-gray-200'
167-
}`}
166+
className={`h-6 w-8 rounded-lg transition-colors ${
167+
i <= currentIndex ? 'bg-rose-400' : 'bg-gray-200'
168+
}`}
168169
/>
169170
))}
170171
</div>

frontend/src/features/diagnosis/components/MbtiSelect.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function MbtiSelect() {
4444
const playSE = useCallback((path: string) => {
4545
const audio = new Audio(path);
4646
audio.volume = 0.5;
47-
audio.play().catch(() => { });
47+
audio.play().catch(() => {});
4848
}, []);
4949

5050
// BGMの初期化と再生管理
@@ -56,7 +56,7 @@ export default function MbtiSelect() {
5656
bgmRef.current = bgm;
5757

5858
const playBGM = () => {
59-
bgm.play().catch(() => { });
59+
bgm.play().catch(() => {});
6060
window.removeEventListener('click', playBGM);
6161
};
6262

@@ -156,8 +156,9 @@ export default function MbtiSelect() {
156156
key={group}
157157
type="button"
158158
onClick={() => handleTabClick(index)}
159-
className={`relative z-10 cursor-pointer rounded-t-lg border-4 border-b-0 border-gray-800 px-4 py-2 text-base font-semibold text-gray-800 ${GROUP_COLORS[index]
160-
} ${groupIndex === index ? 'mb-[-4px]' : ''}`}
159+
className={`relative z-10 cursor-pointer rounded-t-lg border-4 border-b-0 border-gray-800 px-4 py-2 text-base font-semibold text-gray-800 ${
160+
GROUP_COLORS[index]
161+
} ${groupIndex === index ? 'mb-[-4px]' : ''}`}
161162
animate={{
162163
y: groupIndex === index ? 2 : 0,
163164
boxShadow:
@@ -274,13 +275,14 @@ export default function MbtiSelect() {
274275
aria-labelledby="mbti-confirm-title"
275276
>
276277
<div
277-
className={`mx-4 w-full max-w-md rounded-2xl border-4 border-gray-800 p-6 shadow-xl ${GROUP_COLORS[
278-
Math.max(
279-
0,
280-
MBTI_GROUPS.findIndex((g) => g === selectedType.group)
281-
)
278+
className={`mx-4 w-full max-w-md rounded-2xl border-4 border-gray-800 p-6 shadow-xl ${
279+
GROUP_COLORS[
280+
Math.max(
281+
0,
282+
MBTI_GROUPS.findIndex((g) => g === selectedType.group)
283+
)
282284
]
283-
}`}
285+
}`}
284286
>
285287
<p
286288
id="mbti-confirm-title"

frontend/src/features/games/helpdesk/components/HelpdeskGameFlow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function HelpdeskGameFlow() {
2222
const playSE = useCallback((path: string) => {
2323
const audio = new Audio(path);
2424
audio.volume = 0.5;
25-
audio.play().catch(() => { });
25+
audio.play().catch(() => {});
2626
}, []);
2727

2828
// BGMの初期化と再生管理
@@ -33,7 +33,7 @@ export default function HelpdeskGameFlow() {
3333
bgmRef.current = bgm;
3434

3535
const playBGM = () => {
36-
bgm.play().catch(() => { });
36+
bgm.play().catch(() => {});
3737
window.removeEventListener('click', playBGM);
3838
};
3939

frontend/src/features/games/helpdesk/hooks/useHelpdeskGame.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ export function useHelpdeskGame(options: {
227227
const hasTextTurn = currentTurns.some((t) => t.inputMethod === 'text');
228228
const textInputMetrics: TextInputMetrics | null = hasTextTurn
229229
? {
230-
typingIntervalVariance:
231-
typingVariancesRef.current.length > 0
232-
? typingVariancesRef.current.reduce((a, b) => a + b, 0) /
233-
typingVariancesRef.current.length
234-
: 0,
235-
}
230+
typingIntervalVariance:
231+
typingVariancesRef.current.length > 0
232+
? typingVariancesRef.current.reduce((a, b) => a + b, 0) /
233+
typingVariancesRef.current.length
234+
: 0,
235+
}
236236
: null;
237237
const game2Data: Game2Data = {
238238
inputMethod: inputMethodRef.current,
@@ -245,7 +245,7 @@ export function useHelpdeskGame(options: {
245245

246246
// 電話終了音
247247
if (hangupAudioRef.current) {
248-
hangupAudioRef.current.play().catch(() => { });
248+
hangupAudioRef.current.play().catch(() => {});
249249
}
250250
}, [onComplete]);
251251

@@ -557,7 +557,7 @@ export function useHelpdeskGame(options: {
557557
const silentAudio = new Audio();
558558
silentAudio.src =
559559
'data:audio/wav;base64,UklGRigAAABXQVZFRm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA=';
560-
silentAudio.play().catch(() => { });
560+
silentAudio.play().catch(() => {});
561561

562562
// マイクの事前許可を求める
563563
try {
@@ -579,7 +579,7 @@ export function useHelpdeskGame(options: {
579579

580580
// 電話呼び出し音を開始
581581
if (callingAudioRef.current) {
582-
callingAudioRef.current.play().catch(() => { });
582+
callingAudioRef.current.play().catch(() => {});
583583
}
584584
}, [gamePhase]);
585585

0 commit comments

Comments
 (0)