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

Oleg Isonenacbdb4c7393f
diff --git a/apps/designer/app/designer/designer.tsx b/apps/designer/app/designer/designer.tsx
index 9dae525ab2..f1b4bb7d7a 100644
--- a/apps/designer/app/designer/designer.tsx
+++ b/apps/designer/app/designer/designer.tsx
@@ -33,7 +33,6 @@ import {
import { useClientSettings } from "./shared/client-settings";
import { Navigator } from "./features/sidebar-left";
import { PANEL_WIDTH } from "./shared/constants";
-import { Asset } from "@webstudio-is/asset-uploader";
export const links = () => {
return [
diff --git a/apps/designer/app/designer/features/footer/breadcrumbs.tsx b/apps/designer/app/designer/features/footer/breadcrumbs.tsx
index e300013aa8..0e8fd60034 100644
--- a/apps/designer/app/designer/features/footer/breadcrumbs.tsx
+++ b/apps/designer/app/designer/features/footer/breadcrumbs.tsx
@@ -1,7 +1,7 @@
import { ChevronRightIcon } from "@webstudio-is/icons";
import { Button, Flex, Text } from "@webstudio-is/design-system";
+import { type Publish } from "~/shared/pubsub";
import { useSelectedInstancePath } from "~/designer/shared/instance/use-selected-instance-path";
-import { type Publish, type Instance } from "@webstudio-is/react-sdk";
import { useSelectedInstanceData } from "~/designer/shared/nano-states";
type BreadcrumbProps = {
@@ -41,14 +41,14 @@ export const Breadcrumbs = ({ publish }: BreadcrumbsProps) => {
<Flex align="center" css={{ height: "100%" }}>
{selectedInstancePath.length === 0 ? (
<Breadcrumb>
- <Text size="1">No instance selected</Text>
+ <Text>No instance selected</Text>
</Breadcrumb>
) : (
selectedInstancePath.map((instance) => (
<Breadcrumb
key={instance.id}
onClick={() => {
- publish<"selectInstanceById", Instance["id"]>({
+ publish({
type: "selectInstanceById",
payload: instance.id,
});
diff --git a/apps/designer/app/designer/features/footer/footer.tsx b/apps/designer/app/designer/features/footer/footer.tsx
index 29eea38c7d..b3a2a789de 100644
--- a/apps/designer/app/designer/features/footer/footer.tsx
+++ b/apps/designer/app/designer/features/footer/footer.tsx
@@ -1,5 +1,5 @@
import { Box, Flex, darkTheme } from "@webstudio-is/design-system";
-import { type Publish } from "@webstudio-is/react-sdk";
+import { type Publish } from "~/shared/pubsub";
import { Breadcrumbs } from "./breadcrumbs";
export const Footer = ({ publish }: { publish: Publish }) => {
diff --git a/apps/designer/app/designer/features/topbar/topbar.tsx b/apps/designer/app/designer/features/topbar/topbar.tsx
index 7c109213e8..50bc9333f9 100644
--- a/apps/designer/app/designer/features/topbar/topbar.tsx
+++ b/apps/designer/app/designer/features/topbar/topbar.tsx
@@ -1,5 +1,4 @@
import type { Publish } from "~/shared/pubsub";
-import type { Project } from "@webstudio-is/prisma-client";
import { darkTheme, Flex, type CSS } from "@webstudio-is/design-system";
import type { Config } from "~/config";
import { PreviewButton } from "./preview";