Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 617d3d2

Browse files
committed
refactor(panel-sidebar-modal): reorder imports and clean up whitespace
1 parent b548288 commit 617d3d2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/apps/main/core/common/panel-sidebar/components/panel-sidebar-modal.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
55

6-
import { createSignal, type Accessor } from "solid-js";
6+
import { type Accessor, createSignal } from "solid-js";
77
import { createRootHMR } from "@nora/solid-xul";
88
import type { Panel } from "../utils/type.ts";
99
import { getFirefoxSidebarPanels } from "../extension-panels.ts";
@@ -86,7 +86,7 @@ export class PanelSidebarAddModal {
8686
private modalParent: ModalParent;
8787

8888
private texts: Accessor<I18nTextValues> = () => getTranslatedTexts();
89-
private setTexts: (value: I18nTextValues) => void = () => { };
89+
private setTexts: (value: I18nTextValues) => void = () => {};
9090

9191
public static getInstance() {
9292
if (!PanelSidebarAddModal.instance) {
@@ -285,11 +285,10 @@ export class PanelSidebarAddModal {
285285
}
286286

287287
if (type === "static") {
288-
const sideBarToolKey =
289-
result.sideBarTool as keyof typeof STATIC_PANEL_DATA;
288+
const sideBarToolKey = result
289+
.sideBarTool as keyof typeof STATIC_PANEL_DATA;
290290
panel = {
291291
...panel,
292-
icon: STATIC_PANEL_DATA[sideBarToolKey].icon,
293292
url: sideBarToolKey,
294293
};
295294
}

0 commit comments

Comments
 (0)