remove "class" prop in favor of "className"

This commit is contained in:
Nolan Lawson 2018-04-18 22:03:28 -07:00
parent 82438a62e0
commit 9bedf0c886
3 changed files with 3 additions and 10 deletions

View File

@ -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>

View File

@ -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)"

View File

@ -5,7 +5,7 @@
<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>