mostly formatting, dependency fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import type { PageRef } from "../../pdf/pdfTypes";
|
||||
import DropIndicator from "./DropIndicator";
|
||||
import PageCard from "./PageCard";
|
||||
import React from 'react';
|
||||
import type { PageRef } from '../../pdf/pdfTypes';
|
||||
import DropIndicator from './DropIndicator';
|
||||
import PageCard from './PageCard';
|
||||
|
||||
interface PageGridProps {
|
||||
pages: PageRef[];
|
||||
@@ -16,14 +16,14 @@ interface PageGridProps {
|
||||
onDragStart: (visualIndex: number) => React.DragEventHandler<HTMLDivElement>;
|
||||
onDragEnd: React.DragEventHandler<HTMLDivElement>;
|
||||
onCardDragOver: (
|
||||
visualIndex: number,
|
||||
visualIndex: number
|
||||
) => React.DragEventHandler<HTMLDivElement>;
|
||||
onEndSlotDragOver: React.DragEventHandler<HTMLDivElement>;
|
||||
onDrop: React.DragEventHandler<HTMLDivElement>;
|
||||
onOpenPreview: (pageId: string) => void;
|
||||
onToggleSelect: (
|
||||
pageId: string,
|
||||
visualIndex: number,
|
||||
visualIndex: number
|
||||
) => React.MouseEventHandler<HTMLButtonElement>;
|
||||
onRotateClockwise: (pageId: string) => void;
|
||||
onRotateCounterclockwise: (pageId: string) => void;
|
||||
@@ -67,11 +67,11 @@ const PageGrid: React.FC<PageGridProps> = ({
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexWrap: "wrap",
|
||||
gap: "0.5rem",
|
||||
alignItems: "flex-start",
|
||||
marginBottom: "0.75rem",
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
gap: '0.5rem',
|
||||
alignItems: 'flex-start',
|
||||
marginBottom: '0.75rem',
|
||||
}}
|
||||
onDrop={onDrop}
|
||||
>
|
||||
@@ -112,10 +112,10 @@ const PageGrid: React.FC<PageGridProps> = ({
|
||||
onDragOver={onEndSlotDragOver}
|
||||
onDrop={onDrop}
|
||||
style={{
|
||||
width: "20px",
|
||||
height: "120px",
|
||||
position: "relative",
|
||||
alignSelf: "stretch",
|
||||
width: '20px',
|
||||
height: '120px',
|
||||
position: 'relative',
|
||||
alignSelf: 'stretch',
|
||||
}}
|
||||
>
|
||||
{showEndLine() && (
|
||||
|
||||
Reference in New Issue
Block a user