Skip to content

Commit

Permalink
Rename components -> traits
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 4, 2024
1 parent f501c5e commit 5c56e90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/handlebars/group.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<form hx-post="/group/{{group._id}}/posts" hx-target="#posts" hx-swap="afterbegin" hx-on::after-request="this.reset()">
<div>
<label for="body">What's on your mind?</label>
{{> components/editor id="post" field="body"}}
{{> traits/editor id="post" field="body"}}
</div>
<button type="submit">Post</button>
</form>
Expand Down Expand Up @@ -48,7 +48,7 @@
{{#*inline "edit"}}
<form hx-put="/group/{{group}}/posts/{{_id}}" hx-target="#p{{_id}}" hx-swap="outerHTML">
<div>
{{> components/editor id=_id field="body" value=body}}
{{> traits/editor id=_id field="body" value=body}}
</div>
<div>
<button type="submit">💾</button>
Expand All @@ -58,7 +58,7 @@
{{/inline}}
{{#*inline "update"}}
<form hx-put="/group/{{_id}}" hx-target="#description" hx-swap="innerHTML">
{{> components/editor id=_id field="description" value=description}}
{{> traits/editor id=_id field="description" value=description}}
<div>
<button type="submit">💾</button>
<button type="cancel" hx-get="/group/{{_id}}/description">x</button>
Expand Down
2 changes: 1 addition & 1 deletion src/main/handlebars/index.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
<div>
<label for="body">Group description</label>
{{> components/editor id="group" field="description"}}
{{> traits/editor id="group" field="description"}}
</div>
<div>
<button type="submit" hx-disabled-elt="this">Create</button>
Expand Down

0 comments on commit 5c56e90

Please sign in to comment.