Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Prettier formatting

Matt Robertsd7bb171a5109
diff --git a/public/pages/Error/Error401.page.tsx b/public/pages/Error/Error401.page.tsx
index b10a1300e..74da8561e 100644
--- a/public/pages/Error/Error401.page.tsx
+++ b/public/pages/Error/Error401.page.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
const Error401 = () => {
diff --git a/public/pages/Error/Error403.page.tsx b/public/pages/Error/Error403.page.tsx
index e4623f4d5..350762013 100644
--- a/public/pages/Error/Error403.page.tsx
+++ b/public/pages/Error/Error403.page.tsx
@@ -1,5 +1,5 @@
import React from "react"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
const Error403 = () => {
diff --git a/public/pages/Error/Error404.page.tsx b/public/pages/Error/Error404.page.tsx
index 0c33b6f32..4e0371fc5 100644
--- a/public/pages/Error/Error404.page.tsx
+++ b/public/pages/Error/Error404.page.tsx
@@ -1,4 +1,4 @@
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
import React from "react"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
diff --git a/public/pages/Error/Error410.page.tsx b/public/pages/Error/Error410.page.tsx
index f65916e10..b57881d81 100644
--- a/public/pages/Error/Error410.page.tsx
+++ b/public/pages/Error/Error410.page.tsx
@@ -1,4 +1,4 @@
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
import React from "react"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
diff --git a/public/pages/Error/Error500.page.tsx b/public/pages/Error/Error500.page.tsx
index 73bd652e5..de94de2f7 100644
--- a/public/pages/Error/Error500.page.tsx
+++ b/public/pages/Error/Error500.page.tsx
@@ -1,6 +1,6 @@
import React from "react"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
const Error500 = () => {
return (
diff --git a/public/pages/Error/NotInvited.page.tsx b/public/pages/Error/NotInvited.page.tsx
index 55207d53a..45eb0dc94 100644
--- a/public/pages/Error/NotInvited.page.tsx
+++ b/public/pages/Error/NotInvited.page.tsx
@@ -1,4 +1,4 @@
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
import React from "react"
import { ErrorPageWrapper } from "./components/ErrorPageWrapper"
diff --git a/public/pages/Error/components/ErrorPageWrapper.tsx b/public/pages/Error/components/ErrorPageWrapper.tsx
index 610944b53..2a9b842c2 100644
--- a/public/pages/Error/components/ErrorPageWrapper.tsx
+++ b/public/pages/Error/components/ErrorPageWrapper.tsx
@@ -1,7 +1,7 @@
import React from "react"
import { Header, TenantLogo } from "@fider/components"
import { useFider } from "@fider/hooks"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface ErrorPageWrapperProps {
id: string
diff --git a/public/pages/Home/components/PostFilter.tsx b/public/pages/Home/components/PostFilter.tsx
index be42f40d9..e0ab51180 100644
--- a/public/pages/Home/components/PostFilter.tsx
+++ b/public/pages/Home/components/PostFilter.tsx
@@ -6,7 +6,6 @@ import { useFider } from "@fider/hooks"
import { i18n } from "@lingui/core"
import { Trans } from "@lingui/react/macro"
-
interface PostFilterProps {
activeView: string
countPerStatus: { [key: string]: number }
@@ -29,20 +28,20 @@ export const PostFilter = (props: PostFilterProps) => {
}
const options: OptionItem[] = [
- { value: "trending", label: i18n._("home.postfilter.option.trending", {message: "Trending" }) },
- { value: "recent", label: i18n._("home.postfilter.option.recent", {message: "Recent" }) },
- { value: "most-wanted", label: i18n._("home.postfilter.option.mostwanted", {message: "Most Wanted" }) },
- { value: "most-discussed", label: i18n._("home.postfilter.option.mostdiscussed", {message: "Most Discussed" }) },
+ { value: "trending", label: i18n._("home.postfilter.option.trending", { message: "Trending" }) },
+ { value: "recent", label: i18n._("home.postfilter.option.recent", { message: "Recent" }) },
+ { value: "most-wanted", label: i18n._("home.postfilter.option.mostwanted", { message: "Most Wanted" }) },
+ { value: "most-discussed", label: i18n._("home.postfilter.option.mostdiscussed", { message: "Most Discussed" }) },
]
if (fider.session.isAuthenticated) {
- options.push({ value: "my-votes", label: i18n._("home.postfilter.option.myvotes", {message: "My Votes" }) })
+ options.push({ value: "my-votes", label: i18n._("home.postfilter.option.myvotes", { message: "My Votes" }) })
}
PostStatus.All.filter((s) => s.filterable && props.countPerStatus[s.value]).forEach((s) => {
const id = `enum.poststatus.${s.value.toString()}`
options.push({
- label: i18n._(id, {message: s.title }),
+ label: i18n._(id, { message: s.title }),
value: s.value,
count: props.countPerStatus[s.value],
})
diff --git a/public/pages/Home/components/TagsFilter.tsx b/public/pages/Home/components/TagsFilter.tsx
index 2ecb1f9a3..4512f6ca8 100644
--- a/public/pages/Home/components/TagsFilter.tsx
+++ b/public/pages/Home/components/TagsFilter.tsx
@@ -31,7 +31,7 @@ export const TagsFilter = (props: TagsFilterProps) => {
one: `# tag`,
other: `# tags`,
})
- : i18n._("home.tagsfilter.selected.none", {message: "Any tag" })
+ : i18n._("home.tagsfilter.selected.none", { message: "Any tag" })
return (
<HStack>
diff --git a/public/pages/MySettings/components/APIKeyForm.tsx b/public/pages/MySettings/components/APIKeyForm.tsx
index 68802083f..5ab54de44 100644
--- a/public/pages/MySettings/components/APIKeyForm.tsx
+++ b/public/pages/MySettings/components/APIKeyForm.tsx
@@ -1,7 +1,7 @@
import React from "react"
import { Button } from "@fider/components"
import { actions } from "@fider/services"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface APIKeyFormState {
apiKey?: string
diff --git a/public/pages/MySettings/components/DangerZone.tsx b/public/pages/MySettings/components/DangerZone.tsx
index 4c395fc6b..60d606cc1 100644
--- a/public/pages/MySettings/components/DangerZone.tsx
+++ b/public/pages/MySettings/components/DangerZone.tsx
@@ -2,7 +2,7 @@ import React from "react"
import { Button, Modal, ButtonClickEvent } from "@fider/components"
import { actions, notify, navigator } from "@fider/services"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface DangerZoneState {
clicked: boolean
diff --git a/public/pages/ShowPost/ShowPost.page.tsx b/public/pages/ShowPost/ShowPost.page.tsx
index d6f8de6d5..cf78f738b 100644
--- a/public/pages/ShowPost/ShowPost.page.tsx
+++ b/public/pages/ShowPost/ShowPost.page.tsx
@@ -32,7 +32,7 @@ import IconX from "@fider/assets/images/heroicons-x.svg"
import IconPencilAlt from "@fider/assets/images/heroicons-pencil-alt.svg"
import IconCheck from "@fider/assets/images/heroicons-check.svg"
import { HStack, VStack } from "@fider/components/layout"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface ShowPostPageProps {
post: Post
diff --git a/public/pages/ShowPost/components/DiscussionPanel.tsx b/public/pages/ShowPost/components/DiscussionPanel.tsx
index d9d46fc79..5511326d0 100644
--- a/public/pages/ShowPost/components/DiscussionPanel.tsx
+++ b/public/pages/ShowPost/components/DiscussionPanel.tsx
@@ -5,7 +5,7 @@ import { CommentInput } from "./CommentInput"
import PostIllustration from "@fider/assets/images/undraw-post.svg"
import { Icon } from "@fider/components"
import { VStack } from "@fider/components/layout"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface DiscussionPanelProps {
user?: CurrentUser
diff --git a/public/pages/ShowPost/components/NotificationsPanel.tsx b/public/pages/ShowPost/components/NotificationsPanel.tsx
index 796cdc936..3cd9d9b14 100644
--- a/public/pages/ShowPost/components/NotificationsPanel.tsx
+++ b/public/pages/ShowPost/components/NotificationsPanel.tsx
@@ -6,7 +6,7 @@ import { useFider } from "@fider/hooks"
import IconVolumeOn from "@fider/assets/images/heroicons-volume-on.svg"
import IconVolumeOff from "@fider/assets/images/heroicons-volume-off.svg"
import { VStack } from "@fider/components/layout"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface NotificationsPanelProps {
post: Post
diff --git a/public/pages/ShowPost/components/ShowComment.tsx b/public/pages/ShowPost/components/ShowComment.tsx
index a2aaa41e8..a5e490f0f 100644
--- a/public/pages/ShowPost/components/ShowComment.tsx
+++ b/public/pages/ShowPost/components/ShowComment.tsx
@@ -22,7 +22,6 @@ import IconDotsHorizontal from "@fider/assets/images/heroicons-dots-horizontal.s
import { t } from "@lingui/core/macro"
import { Trans } from "@lingui/react/macro"
-
interface ShowCommentProps {
post: Post
comment: Comment
diff --git a/public/pages/ShowPost/components/TagsPanel.tsx b/public/pages/ShowPost/components/TagsPanel.tsx
index f337caa24..4eae6fe9f 100644
--- a/public/pages/ShowPost/components/TagsPanel.tsx
+++ b/public/pages/ShowPost/components/TagsPanel.tsx
@@ -8,7 +8,7 @@ import { useFider } from "@fider/hooks"
import IconPencilAlt from "@fider/assets/images/heroicons-pencil-alt.svg"
import IconCheckCircle from "@fider/assets/images/heroicons-check-circle.svg"
import { HStack, VStack } from "@fider/components/layout"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface TagsPanelProps {
post: Post
diff --git a/public/pages/ShowPost/components/VotesPanel.tsx b/public/pages/ShowPost/components/VotesPanel.tsx
index 042f8d171..ecf0fa295 100644
--- a/public/pages/ShowPost/components/VotesPanel.tsx
+++ b/public/pages/ShowPost/components/VotesPanel.tsx
@@ -5,7 +5,7 @@ import { Fider } from "@fider/services"
import { useFider } from "@fider/hooks"
import { VotesModal } from "./VotesModal"
import { HStack, VStack } from "@fider/components/layout"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
interface VotesPanelProps {
post: Post
diff --git a/public/pages/SignIn/SignIn.page.tsx b/public/pages/SignIn/SignIn.page.tsx
index c192215ef..cc17cabef 100644
--- a/public/pages/SignIn/SignIn.page.tsx
+++ b/public/pages/SignIn/SignIn.page.tsx
@@ -1,7 +1,7 @@
import React from "react"
import { SignInControl, TenantLogo, LegalNotice } from "@fider/components"
import { notify } from "@fider/services"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
import { useFider } from "@fider/hooks"
const Locked = (): JSX.Element => {
diff --git a/public/pages/SignUp/PendingActivation.page.tsx b/public/pages/SignUp/PendingActivation.page.tsx
index e3f51b70f..8360e62f4 100644
--- a/public/pages/SignUp/PendingActivation.page.tsx
+++ b/public/pages/SignUp/PendingActivation.page.tsx
@@ -1,6 +1,6 @@
import React from "react"
import { TenantLogo } from "@fider/components"
-import { Trans } from "@lingui/react/macro";
+import { Trans } from "@lingui/react/macro"
const PendingActivation = () => {
return (