Repository navigation
一部テーマで行き先を1行で表示するように修正 - #5305
Merged
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthrough
Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/hooks/useHeaderStateText.ts (1)
95-104: ES6 shorthand property を使用可能。ロジックは正しいです。
stateTextRight: stateTextRightは shorthand で簡略化できます。♻️ 提案
if ( currentTheme === APP_THEME.YAMANOTE || currentTheme === APP_THEME.JL || currentTheme === APP_THEME.JO ) { return { stateText: stateText.replaceAll('\n', ' '), - stateTextRight: stateTextRight, + stateTextRight, }; }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/hooks/useHeaderStateText.ts` around lines 95 - 104, The returned object in the conditional uses an explicit property assignment for stateTextRight; change it to the ES6 shorthand by returning stateTextRight without the colon/value repetition. Update the return in the block that checks currentTheme against APP_THEME.YAMANOTE, APP_THEME.JL, and APP_THEME.JO so it returns { stateText: stateText.replaceAll('\n', ' '), stateTextRight } instead of stateTextRight: stateTextRight to use shorthand syntax.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/hooks/useHeaderStateText.ts`:
- Around line 95-104: The returned object in the conditional uses an explicit
property assignment for stateTextRight; change it to the ES6 shorthand by
returning stateTextRight without the colon/value repetition. Update the return
in the block that checks currentTheme against APP_THEME.YAMANOTE, APP_THEME.JL,
and APP_THEME.JO so it returns { stateText: stateText.replaceAll('\n', ' '),
stateTextRight } instead of stateTextRight: stateTextRight to use shorthand
syntax.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit