Skip to content

Commit

Permalink
Fix run Storybook in static mode (WebpackCompilationError: Unexpected…
Browse files Browse the repository at this point in the history
… token (41:4))
  • Loading branch information
AlexeySafronov committed Jan 24, 2025
1 parent 023d795 commit dbf3a63
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/components/Article/MainButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import styled, { css } from "styled-components";
import { ArticleButtonLoader } from "@docspace/shared/skeletons/article";
import { isMobile, isTablet } from "react-device-detect";
import { globalColors } from "@docspace/shared/themes";
import { getFilesFromEvent } from "@docspace/shared/components/drag-and-drop";
import getFilesFromEvent from "@docspace/shared/utils/get-files-from-event";
import MobileView from "./MobileView";
import { encryptionUploadDialog } from "../../../helpers/desktop";

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/pages/Home/Section/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {
import TariffBar from "SRC_DIR/components/TariffBar";
import { getLifetimePeriodTranslation } from "@docspace/shared/utils/common";
import { globalColors } from "@docspace/shared/themes";
import { getFilesFromEvent } from "@docspace/shared/components/drag-and-drop";
import getFilesFromEvent from "@docspace/shared/utils/get-files-from-event";
import { toastr } from "@docspace/shared/components/toast";
import { Button, ButtonSize } from "@docspace/shared/components/button";
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/store/AvatarEditorDialogStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
} from "@docspace/shared/constants";

import { toastr } from "@docspace/shared/components/toast";
import { getFilesFromEvent } from "@docspace/shared/components/drag-and-drop";
import getFilesFromEvent from "@docspace/shared/utils/get-files-from-event";

import resizeImage from "resize-image";
import api from "@docspace/shared/api";
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/store/HotkeyStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { checkDialogsOpen } from "@docspace/shared/utils/checkDialogsOpen";

import { toastr } from "@docspace/shared/components/toast";
import { isMobile } from "@docspace/shared/utils";
import { getFilesFromEvent } from "@docspace/shared/components/drag-and-drop";
import getFilesFromEvent from "@docspace/shared/utils/get-files-from-event";

import config from "PACKAGE_FILE";
import { getCategoryUrl } from "SRC_DIR/helpers/utils";
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/components/drag-and-drop/DragAndDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import React from "react";
import classNames from "classnames";
import { useDropzone } from "react-dropzone";

import getFilesFromEvent from "./get-files-from-event";
import getFilesFromEvent from "../../utils/get-files-from-event";

import styles from "./DragAndDrop.module.scss";
import { DragAndDropProps } from "./DragAndDrop.types";
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/components/drag-and-drop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode

import getFilesFromEvent from "./get-files-from-event";
import DragAndDrop from "./DragAndDrop";

export { DragAndDrop, getFilesFromEvent };
export { DragAndDrop };

0 comments on commit dbf3a63

Please sign in to comment.