Open platform to collect and prioritize feedback
style: reformat with prettier 3
Matt Roberts0e39cba56cd0
diff --git a/public/components/common/Moment.tsx b/public/components/common/Moment.tsxindex f49e7164f..4a6a7da7e 100644--- a/public/components/common/Moment.tsx+++ b/public/components/common/Moment.tsx@@ -22,10 +22,10 @@ export const Moment = (props: MomentText) => {diff >= 365 && format === "relative"? formatDate(props.locale, props.date, "short"): format === "relative"- ? timeSince(props.locale, now, date)- : format === "date"- ? formatDate(props.locale, props.date, "date")- : formatDate(props.locale, props.date, format)+ ? timeSince(props.locale, now, date)+ : format === "date"+ ? formatDate(props.locale, props.date, "date")+ : formatDate(props.locale, props.date, format)const tooltip = props.format === "short" ? formatDate(props.locale, props.date, "full") : undefineddiff --git a/public/components/common/form/DisplayError.tsx b/public/components/common/form/DisplayError.tsxindex b5a2a7b63..a19ff65f5 100644--- a/public/components/common/form/DisplayError.tsx+++ b/public/components/common/form/DisplayError.tsx@@ -28,11 +28,14 @@ export const DisplayError = (props: DisplayErrorProps) => {return null}- const dict = props.error.errors.reduce((result, err) => {- result[err.field || ""] = result[err.field || ""] || []- result[err.field || ""].push(err.message)- return result- }, {} as { [key: string]: string[] })+ const dict = props.error.errors.reduce(+ (result, err) => {+ result[err.field || ""] = result[err.field || ""] || []+ result[err.field || ""].push(err.message)+ return result+ },+ {} as { [key: string]: string[] }+ )let items: JSX.Element[] = []diff --git a/public/models/post.ts b/public/models/post.tsindex 2c5fd6bac..4c38c36cb 100644--- a/public/models/post.ts+++ b/public/models/post.ts@@ -18,7 +18,13 @@ export interface Post {}export class PostStatus {- constructor(public title: string, public value: string, public show: boolean, public closed: boolean, public filterable: boolean) {}+ constructor(+ public title: string,+ public value: string,+ public show: boolean,+ public closed: boolean,+ public filterable: boolean+ ) {}public static Open = new PostStatus("Open", "open", false, false, true)public static Planned = new PostStatus("Planned", "planned", true, false, true)diff --git a/public/pages/Error/Error.page.spec.tsx b/public/pages/Error/Error.page.spec.tsxindex 02e6ad39c..e753d8a02 100644--- a/public/pages/Error/Error.page.spec.tsx+++ b/public/pages/Error/Error.page.spec.tsx@@ -5,7 +5,7 @@ import { FiderContext } from "@fider/services"import { fiderMock } from "@fider/services/testing"describe("<ErrorPage />", () => {- const createFakeErrorInfo = () => ({ componentStack: "" } as React.ErrorInfo)+ const createFakeErrorInfo = () => ({ componentStack: "" }) as React.ErrorInfotest("it should show the error when showError returns true", () => {const error = new Error("Hello")