From 10a9d36f3d5762eeb0308f77a1e0aeb443c83a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Sun, 13 Oct 2024 14:14:05 +0200 Subject: [PATCH] FIX: Make biome happy --- webapp/src/components/editor/editor.tsx | 2 +- webapp/src/components/toolbar.tsx | 16 +++++++--------- webapp/src/components/workbook.tsx | 4 +++- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/webapp/src/components/editor/editor.tsx b/webapp/src/components/editor/editor.tsx index 91fc198..10e29a5 100644 --- a/webapp/src/components/editor/editor.tsx +++ b/webapp/src/components/editor/editor.tsx @@ -206,7 +206,7 @@ const Editor = (options: EditorOptions) => { display: showEditor, background: "#FFF", fontFamily: "Inter", - fontSize: "13px" + fontSize: "13px", }} >
{ properties.onNumberFormatPicked( - decreaseDecimalPlaces(properties.numFmt) + decreaseDecimalPlaces(properties.numFmt), ); }} disabled={!canEdit} @@ -157,7 +157,7 @@ function Toolbar(properties: ToolbarProperties) { $pressed={false} onClick={(): void => { properties.onNumberFormatPicked( - increaseDecimalPlaces(properties.numFmt) + increaseDecimalPlaces(properties.numFmt), ); }} disabled={!canEdit} @@ -257,7 +257,7 @@ function Toolbar(properties: ToolbarProperties) { $pressed={properties.horizontalAlign === "left"} onClick={() => properties.onToggleHorizontalAlign( - properties.horizontalAlign === "left" ? "general" : "left" + properties.horizontalAlign === "left" ? "general" : "left", ) } disabled={!canEdit} @@ -270,7 +270,7 @@ function Toolbar(properties: ToolbarProperties) { $pressed={properties.horizontalAlign === "center"} onClick={() => properties.onToggleHorizontalAlign( - properties.horizontalAlign === "center" ? "general" : "center" + properties.horizontalAlign === "center" ? "general" : "center", ) } disabled={!canEdit} @@ -283,7 +283,7 @@ function Toolbar(properties: ToolbarProperties) { $pressed={properties.horizontalAlign === "right"} onClick={() => properties.onToggleHorizontalAlign( - properties.horizontalAlign === "right" ? "general" : "right" + properties.horizontalAlign === "right" ? "general" : "right", ) } disabled={!canEdit} @@ -303,9 +303,7 @@ function Toolbar(properties: ToolbarProperties) { - properties.onToggleVerticalAlign("center") - } + onClick={() => properties.onToggleVerticalAlign("center")} disabled={!canEdit} title={t("toolbar.vertical_align_middle")} > @@ -434,7 +432,7 @@ export const StyledButton = styled("button")( borderTopColor: "#F1F2F8", }, }; - } + }, ); const Divider = styled("div")({ diff --git a/webapp/src/components/workbook.tsx b/webapp/src/components/workbook.tsx index 9db28b7..6557f45 100644 --- a/webapp/src/components/workbook.tsx +++ b/webapp/src/components/workbook.tsx @@ -368,7 +368,9 @@ const Workbook = (props: { model: Model; workbookState: WorkbookState }) => { horizontalAlign={ style.alignment ? style.alignment.horizontal : "general" } - verticalAlign={(style.alignment?.vertical) ? style.alignment.vertical: "bottom"} + verticalAlign={ + style.alignment?.vertical ? style.alignment.vertical : "bottom" + } canEdit={true} numFmt={style.num_fmt} showGridLines={model.getShowGridLines(model.getSelectedSheet())}