Docs reorganization

This commit is contained in:
Erik Ziegler committed 2021-07-15 09:54:01 +02:00
1 parent d6877cfcf9
commit c0df334233
152 files changed
+872 -886

No files matched your search

@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
export function LayoutSelector({ onSelection }) {
function LayoutSelector({ onSelection }) {
const [hoveredIndex, setHoveredIndex] = useState();
const hoverX = hoveredIndex % 3;
const hoverY = Math.floor(hoveredIndex / 3);
@@ -34,7 +34,7 @@ const FILE_TYPE_OPTIONS = [
const DEFAULT_FILENAME = 'image';
const REFRESH_VIEWPORT_TIMEOUT = 1000;
export const ViewportDownloadForm = ({
const ViewportDownloadForm = ({
activeViewport,
onClose,
updateViewportPreview,
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
export function ViewportGrid({ numRows, numCols, children }) {
function ViewportGrid({ numRows, numCols, children }) {
const rowSize = 100 / numRows;
const colSize = 100 / numCols;
@@ -6,7 +6,7 @@ import { useDrop } from 'react-dnd';
// NOTE: If we found a way to make `useDrop` conditional,
// Or we provided a HOC of this component, we could provide
// this UI without the DragAndDropContext dependency.
export function ViewportPane({
function ViewportPane({
children,
className,
isActive,