Skip to content

Commit 7d2fd5a

Browse files
justin808claude
andcommitted
Fix Prettier formatting issues
- Format HelloWorld.client.tsx templates with proper line breaks - Ensure all code follows Prettier style guidelines - Fix input element formatting for consistency 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b285048 commit 7d2fd5a

File tree

2 files changed

+2
-12
lines changed
  • lib/generators/react_on_rails/templates

2 files changed

+2
-12
lines changed

lib/generators/react_on_rails/templates/base/base/app/javascript/src/HelloWorld/ror_components/HelloWorld.client.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ const HelloWorld: React.FC<HelloWorldProps> = (props) => {
1515
<form>
1616
<label className={style.bright} htmlFor="name">
1717
Say hello to:
18-
<input
19-
id="name"
20-
type="text"
21-
value={name}
22-
onChange={e => setName(e.target.value)}
23-
/>
18+
<input id="name" type="text" value={name} onChange={(e) => setName(e.target.value)} />
2419
</label>
2520
</form>
2621
</div>

lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/components/HelloWorld.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ const HelloWorld: React.FC<HelloWorldProps> = ({ name, updateName }) => (
1515
<form>
1616
<label className={style.bright} htmlFor="name">
1717
Say hello to:
18-
<input
19-
id="name"
20-
type="text"
21-
value={name}
22-
onChange={e => updateName(e.target.value)}
23-
/>
18+
<input id="name" type="text" value={name} onChange={(e) => updateName(e.target.value)} />
2419
</label>
2520
</form>
2621
</div>

0 commit comments

Comments
 (0)