Skip to content

Commit

Permalink
chore: update FontAwesome v6 icon search link (#4036)
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin authored Sep 29, 2024
1 parent e5f124b commit 1a12209
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/tags/js/src/admin/components/EditTagModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class EditTagModal extends FormModal<EditTagModalAttrs> {
<div className="Form-group">
<label>{app.translator.trans('flarum-tags.admin.edit_tag.icon_label')}</label>
<div className="helpText">
{app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: <a href="https://fontawesome.com/icons?m=free" tabindex="-1" /> })}
{app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: <a href={app.refs.fontawesome} tabindex="-1" /> })}
</div>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>,
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/admin/components/EditGroupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class EditGroupModal<CustomAttrs extends IEditGroupModalAttrs = I
<div className="Form-group">
<label>{app.translator.trans('core.admin.edit_group.icon_label')}</label>
<div className="helpText">
{app.translator.trans('core.admin.edit_group.icon_text', { a: <a href="https://fontawesome.com/v5/search?m=free" tabindex="-1" /> })}
{app.translator.trans('core.admin.edit_group.icon_text', { a: <a href={app.refs.fontawesome} tabindex="-1" /> })}
</div>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>,
Expand Down
4 changes: 4 additions & 0 deletions framework/core/js/src/common/Application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ export default class Application {

allowUserColorScheme!: boolean;

refs: Record<string, string> = {
fontawesome: 'https://fontawesome.com/v6/icons?o=r&m=free',
};

private _title: string = '';
private _titleCount: number = 0;

Expand Down

0 comments on commit 1a12209

Please sign in to comment.