Skip to content

Commit

Permalink
use link model
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jul 3, 2024
1 parent e5dabbc commit 70c3c41
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions js/src/forum/components/LinkItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,17 @@

import app from 'flarum/forum/app';
import Link from 'flarum/common/components/Link';
import LinkModel from '../../common/models/Link';
import LinkButton from 'flarum/common/components/LinkButton';
import icon from 'flarum/common/helpers/icon';
import Separator from 'flarum/common/components/Separator';

import classList from 'flarum/common/utils/classList';

import type { IButtonAttrs } from 'flarum/common/components/Button';
import type Mithril from 'mithril';
import Button from 'flarum/common/components/Button';

interface ILink {
isInternal(): boolean;
url(): string;
title(): string;
icon(): string;
isNewtab(): boolean;
useRelMe(): boolean;
}

interface ILinkItemAttrs extends IButtonAttrs {
link: ILink;
export interface ILinkItemAttrs extends IButtonAttrs {
link: LinkModel;
className?: string;
inDropdown?: boolean;
isDropdownButton?: boolean;
Expand Down

0 comments on commit 70c3c41

Please sign in to comment.