Skip to content

Commit

Permalink
remove "class" prop in favor of "className" (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Apr 19, 2018
1 parent 82438a6 commit a24177b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions routes/_components/ExternalLink.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,4 @@
.external-link-with-icon.normal-icon-color .external-link-svg {
fill: var(--body-text-color);
}
</style>
<script>
export default {
oncreate() {
this.set({className: this.get('class')}) // workaround for "class" property name bug in svelte
}
}
</script>
</style>
2 changes: 1 addition & 1 deletion routes/_components/status/StatusDetails.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="status-details">
<ExternalLink class="status-absolute-date"
<ExternalLink className="status-absolute-date"
href="{{originalStatus.url}}"
showIcon="true"
ariaLabel="{{formattedDate}} (opens in new window)"
Expand Down
2 changes: 1 addition & 1 deletion routes/_pages/settings/instances/[instanceName].html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 class="instance-name-h1">{{params.instanceName}}</h1>
<h2>Logged in as:</h2>
<div class="acct-current-user">
<Avatar account="{{verifyCredentials}}" className="acct-avatar" size="big"/>
<ExternalLink class="acct-handle"
<ExternalLink className="acct-handle"
href="{{verifyCredentials.url}}">
{{'@' + verifyCredentials.acct}}
</ExternalLink>
Expand Down

0 comments on commit a24177b

Please sign in to comment.