Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix linter and tests

Oleg Isonen657b5186ae24
diff --git a/apps/designer/app/canvas/canvas.tsx b/apps/designer/app/canvas/canvas.tsx
index 486e0100b4..b6b37946dc 100644
--- a/apps/designer/app/canvas/canvas.tsx
+++ b/apps/designer/app/canvas/canvas.tsx
@@ -35,7 +35,6 @@ import {
} from "./shared/breakpoints";
import {
rootInstanceContainer,
- useBreakpoints,
useRootInstance,
useSubscribeScrollState,
} from "~/shared/nano-states";
diff --git a/apps/designer/app/routes/s/css.ts b/apps/designer/app/routes/s/css.ts
index 73ea0bea29..fbe0185ec7 100644
--- a/apps/designer/app/routes/s/css.ts
+++ b/apps/designer/app/routes/s/css.ts
@@ -7,7 +7,7 @@ import { sentryException } from "~/shared/sentry";
import { CssEngine } from "@webstudio-is/css-engine";
import { getCssRules } from "~/shared/tree-utils";
-export const loader: ActionFunction = async ({ request, params }) => {
+export const loader: ActionFunction = async ({ request }) => {
try {
const buildParams = getBuildParams(request);
diff --git a/packages/project/src/shared/pages/find-by-id-or-path.test.ts b/packages/project/src/shared/pages/find-by-id-or-path.test.ts
index b9fb4fa79e..4cd14164c0 100644
--- a/packages/project/src/shared/pages/find-by-id-or-path.test.ts
+++ b/packages/project/src/shared/pages/find-by-id-or-path.test.ts
@@ -39,7 +39,7 @@ describe("Find by id or path", () => {
expect(page).toEqual(pages.pages[0]);
});
test("find page by path", () => {
- const page = findByIdOrPath(pages, "/path1");
+ const page = findByIdOrPath(pages, "/page1");
expect(page).toEqual(pages.pages[0]);
});
});
diff --git a/packages/react-sdk/src/tree/create-elements-tree.tsx b/packages/react-sdk/src/tree/create-elements-tree.tsx
index dd08918a7c..e5b655dcc4 100644
--- a/packages/react-sdk/src/tree/create-elements-tree.tsx
+++ b/packages/react-sdk/src/tree/create-elements-tree.tsx
@@ -1,6 +1,5 @@
import { type ComponentProps, Fragment } from "react";
import type { Instance } from "../db";
-import type { Breakpoint } from "../css";
import { WrapperComponent } from "./wrapper-component";
import { Scripts, ScrollRestoration } from "@remix-run/react";
import { SessionStoragePolyfill } from "./session-storage-polyfill";