Skip to content

Commit

Permalink
chore: move modules
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 15, 2024
1 parent c96c8cc commit 4a6f30f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import AdminPage, { AdminHeaderAttrs } from 'flarum/admin/components/AdminPage';
import LoadingIndicator from 'flarum/common/components/LoadingIndicator';
import type { IPageAttrs } from 'flarum/common/components/Page';
import type Mithril from 'mithril';
import DataType from './models/DataType';
import DataType from '../models/DataType';
import Tooltip from 'flarum/common/components/Tooltip';
import ExtensionLink from './components/ExtensionLink';
import ExtensionLink from './ExtensionLink';
import LinkButton from 'flarum/common/components/LinkButton';

export default class GdprPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends AdminPage<CustomAttrs> {
Expand Down Expand Up @@ -72,7 +72,7 @@ export default class GdprPage<CustomAttrs extends IPageAttrs = IPageAttrs> exten
<div className="helpText">{dataType.anonymizeDescription()}</div>
<div className="helpText">{dataType.deleteDescription()}</div>
<div>
<ExtensionLink extension={app.data.extensions[dataType.extension()]} />
<ExtensionLink extension={dataType.extension() ? app.data.extensions[dataType.extension() as string] : null} />
</div>
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion js/src/admin/extend.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { default as extend } from '../common/extend';
import Extend from 'flarum/common/extenders';
import app from 'flarum/admin/app';
import GdprPage from './GdprPage';
import GdprPage from './components/GdprPage';
import DataType from './models/DataType';
import LinkButton from 'flarum/common/components/LinkButton';
import type Mithril from 'mithril';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion js/src/forum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import extendUserSettingsPage from './extenders/extendUserSettingsPage';
import extendHeaderSecondary from './extenders/extendHeaderSecondary';
import extendPage from './extenders/extendPage';
import extendUserControls from './extenders/extendUserControls';
import addAnonymousBadges from './addAnonymousBadges';
import addAnonymousBadges from './extenders/addAnonymousBadges';

export { default as extend } from './extend';

Expand Down

0 comments on commit 4a6f30f

Please sign in to comment.