Skip to content

Commit

Permalink
remove nested template literals
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Dec 31, 2024
1 parent c5c3bb8 commit a54705c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/post-list/post-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class PostList {
/**
* Get the id set on the host element or use a random id by default
*/
this.titleId = `title-${this.host.id || `p${nanoid(6)}`}`;
this.titleId = `title-${this.host.id || nanoid(6)}`;
}

componentDidLoad() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class PostTabHeader {
}

componentWillLoad() {
this.tabId = `tab-${this.host.id || `p${nanoid(6)}`}`;
this.tabId = `tab-${this.host.id || nanoid(6)}`;
}

render() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class PostTabPanel {

componentWillLoad() {
// get the id set on the host element or use a random id by default
this.panelId = `panel-${this.host.id || `p${nanoid(6)}`}`;
this.panelId = `panel-${this.host.id || nanoid(6)}`;
}

render() {
Expand Down

0 comments on commit a54705c

Please sign in to comment.