-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display support link on author component
- Loading branch information
1 parent
ad6069e
commit 0504578
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Component from "ui/Component" | ||
|
||
interface ExternalLinkExtensions { | ||
|
||
} | ||
|
||
interface ExternalLink extends Component, ExternalLinkExtensions { } | ||
|
||
const ExternalLink = Component.Builder("a", (component, href: string | undefined) => { | ||
component.style("link", "link-external") | ||
|
||
if (href !== undefined) | ||
component.attributes.set("href", href) | ||
|
||
return component | ||
}) | ||
|
||
export default ExternalLink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,7 @@ | |
&-pronouns: | ||
|
||
&-description: | ||
|
||
&-support-link: | ||
%block | ||
%margin-top-4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters