-
-
-
-
-
-
-
+
+
+
+
+
+
+
{fider.session.user.isAdministrator && (
<>
- {fider.settings.isBillingEnabled && }
-
-
+ {fider.settings.isBillingEnabled && (
+
+ )}
+
+
>
)}
diff --git a/public/pages/Administration/pages/ContentModeration.page.tsx b/public/pages/Administration/pages/ContentModeration.page.tsx
index 92de3cfd2..9f479527b 100644
--- a/public/pages/Administration/pages/ContentModeration.page.tsx
+++ b/public/pages/Administration/pages/ContentModeration.page.tsx
@@ -4,7 +4,7 @@ import React, { useState, useEffect } from "react"
import { Button, Avatar, Loader, Icon, Markdown } from "@fider/components/common"
import { Header } from "@fider/components"
import { HStack, VStack } from "@fider/components/layout"
-import { actions, chopString, http, notify } from "@fider/services"
+import { actions, chopString, http, navigator, notify } from "@fider/services"
import { User, UserStatus } from "@fider/models"
import { useFider } from "@fider/hooks"
import { Trans } from "@lingui/react/macro"
@@ -169,7 +169,7 @@ const ContentModerationPage = () => {
}
const handlePostClick = (link: string) => {
- window.location.href = link
+ navigator.goTo(link)
}
const renderModerationItem = (item: ModerationItem) => {
diff --git a/public/pages/Administration/pages/Export.page.tsx b/public/pages/Administration/pages/Export.page.tsx
index 8ba1c3f05..c831ced73 100644
--- a/public/pages/Administration/pages/Export.page.tsx
+++ b/public/pages/Administration/pages/Export.page.tsx
@@ -1,6 +1,7 @@
import React from "react"
import { Button, Icon } from "@fider/components"
+import { basePath } from "@fider/services"
import { AdminBasePage } from "../components/AdminBasePage"
import IconDownload from "@fider/assets/images/heroicons-download.svg"
@@ -18,7 +19,7 @@ export default class ExportPage extends AdminBasePage
{
Use this button to download a CSV file with all posts in this site. This can be useful to analyse the data with an external tool or simply to back it
up.
-