Skip to content

Commit

Permalink
Added follow button
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed Jul 4, 2024
1 parent 63d127a commit feb67be
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/plugin/src/app/settingTab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,22 @@ export class SettingsTab extends PluginSettingTab {
containerEl.empty();

this.renderExcludedFolders();
this.renderFollowButton();
this.renderSupportHeader(containerEl);
}

renderFollowButton(containerEl: HTMLElement) {
new Setting(containerEl)
.setName('Follow me on X')
.setDesc('@dSebastien')
.addButton((button) => {
button.setCta();
button.setButtonText('Follow me on X').onClick(() => {
window.open('https://x.com/dSebastien');
});
});
}

renderSupportHeader(containerEl: HTMLElement) {
new Setting(containerEl).setName('Support').setHeading();

Expand Down

0 comments on commit feb67be

Please sign in to comment.