Skip to content

Commit 2614fa8

Browse files
committed
Fix stuff again (why does building throw on a warning??)
1 parent 7735c2c commit 2614fa8

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/components/layout/LayoutView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useContextMenu } from "@components/contextmenu/ContextMenu.ts";
22
import { makeSection, Sections, makeSingle } from "@components/contextmenu/ContextMenu.ts";
3-
import { FC, memo, ReactNode } from "react";
3+
import { memo } from "react";
44
import { createId } from "../../common/uuid.ts";
55
import { ErrorBoundary } from "../error/ErrorBoundary.tsx";
66
import { Translate } from "../translate/Translate.tsx";

src/components/view/viewport/Viewport.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { WebGLLayer } from "./webgl/WebGLLayer.tsx";
1717
import { useContextMenu } from "@components/contextmenu/ContextMenu.ts";
1818
import { makeSection, Sections, makeSingle } from "@components/contextmenu/ContextMenu.ts";
1919
import { viewportToMap } from "./mapping.ts";
20-
import { useDispatchSelection, useEditorSelection } from "@components/editor/selection.ts";
20+
import { useDispatchSelection } from "@components/editor/selection.ts";
2121
import { clickbox, zIndex } from "./objectProperties.ts";
2222
import { sortBy } from "@common/array.ts";
2323
import { ActiveSelection } from "./ActiveSelection.tsx";

src/components/view/viewport/renderer/text.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { toClassName } from "@components/utils.tsx";
22
import { ViewportLayerFC } from "../Viewport.tsx";
3-
import { mapToViewportCenter } from "../mapping.ts";
43
import css from "./text.module.css";
54

65
export const TextLayer: ViewportLayerFC = ({ viewportInfo }) => {

src/components/view/viewport/webgl/webgl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type WebGLValueType = {
77
type: WebGL2RenderingContext["BYTE" | "SHORT" | "UNSIGNED_BYTE" | "UNSIGNED_SHORT" | "FLOAT" | "INT"];
88
};
99
const GL_FLOAT = 5126;
10-
const GL_INT = 5124;
10+
// const GL_INT = 5124;
1111

1212
export abstract class WebGlRenderer<T extends unknown[]> {
1313
info?: {

src/hooks/useElementSize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function useElementSize(ref: RefObject<HTMLElement | null>) {
99
if (!el) {
1010
return;
1111
}
12-
const handleWindowResize = (e: UIEvent | ResizeObserverEntry[]) => {
12+
const handleWindowResize = (_: UIEvent | ResizeObserverEntry[]) => {
1313
const newSize = vec2(
1414
el.offsetWidth,
1515
el.offsetHeight,

0 commit comments

Comments
 (0)