Skip to content

Commit

Permalink
build: e2e error
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 committed Dec 7, 2024
1 parent 942ebad commit fc61e68
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 101 deletions.
2 changes: 1 addition & 1 deletion apps/web-e2e/src/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ test('has title', async ({ page }) => {
await page.goto('/');

// Expect h1 to contain a substring.
expect(await page.locator('h1').innerText()).toContain('Welcome');
expect(await page.locator('drawnix')).toBeTruthy();
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { OpenFile, SaveAsImage, SaveToFile, Socials } from './app-menu-items';
import Menu from '../../menu/menu';
import MenuSeparator from '../../menu/menu-separator';

export const AppToolbar: React.FC<null> = () => {
export const AppToolbar = () => {
const board = useBoard();
const container = PlaitBoard.getBoardContainer(board);
const selectedElements = getSelectedElements(board);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ import { PopupFillButton } from './fill-button';
import { isWhite, removeHexAlpha } from '../../../utils/color';
import { NO_COLOR } from '../../../constants/color';

export type PopupToolbarProps = null;

export const PopupToolbar: React.FC<PopupToolbarProps> = () => {
export const PopupToolbar = () => {
const board = useBoard();
const selectedElements = getSelectedElements(board);
const [movingOrDragging, setMovingOrDragging] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion packages/drawnix/src/components/toolbar/zoom-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useState } from 'react';
import Menu from '../menu/menu';
import MenuItem from '../menu/menu-item';

export const ZoomToolbar: React.FC<null> = () => {
export const ZoomToolbar = () => {
const board = useBoard();
const container = PlaitBoard.getBoardContainer(board);
const [zoomMenuOpen, setZoomMenuOpen] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion packages/drawnix/src/data/blob.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PlaitBoard } from '@plait/core';
import { isValidDrawnixData } from './json';
import { MIME_TYPES } from '../constants';
import { ValueOf } from '../utility-types';
import { ValueOf } from '../utils/utility-types';

export const loadFromBlob = async (board: PlaitBoard, blob: Blob | File) => {
const contents = await parseFileContents(blob);
Expand Down
86 changes: 0 additions & 86 deletions packages/drawnix/src/hooks/use-outside-click.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/drawnix/src/hooks/use-stable.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/react-board/src/hooks/use-board-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
initializeViewBox,
initializeViewportContainer,
isFromViewportChange,
isPreventTouchMove,
setIsFromViewportChange,
updateViewportByScrolling,
updateViewportOffset,
Expand Down

0 comments on commit fc61e68

Please sign in to comment.