Skip to content

Commit

Permalink
style: use link component
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Jun 16, 2024
1 parent 87fcbbb commit a77322a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/src/forum/components/addManagePoliciesOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import app from 'flarum/forum/app';
import SettingsPage from 'flarum/forum/components/SettingsPage';
import FieldSet from 'flarum/common/components/FieldSet';
import Switch from 'flarum/common/components/Switch';
import Link from 'flarum/common/components/Link';

async function updatePolicy(policy, value) {
const endpoint = `${app.forum.attribute('apiUrl')}${policy.apiEndpoint()}${value ? '/accept' : '/decline'}`;
Expand Down Expand Up @@ -37,9 +38,9 @@ export default function () {
>
{' '}
{policy.url() ? (
<a target="_blank" href={policy.url()}>
<Link target="_blank" href={policy.url()}>
{policy.name()}
</a>
</Link>
) : (
policy.name()
)}
Expand Down

0 comments on commit a77322a

Please sign in to comment.