This commit is contained in:
Manav Rathi
2025-02-17 14:58:07 +05:30
parent fe86075868
commit 0eba6b9c98
5 changed files with 6 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ import { photosLogout } from "services/logout";
// import "photoswipe/dist/photoswipe.css";
// TODO(PS): Note, auto hide only works with the new CSS.
import "../../../../packages/new/photos/components/ps5/dist/photoswipe.css";
import "../../../../packages/gallery/components/viewer/ps5/dist/photoswipe.css";
import "styles/global.css";

View File

@@ -18,7 +18,7 @@ import { FileInfo } from "@/gallery/components/FileInfo";
import type { EnteFile } from "@/media/file.js";
import { Button, styled } from "@mui/material";
import { useCallback, useEffect, useRef, useState } from "react";
import { FileViewerPhotoSwipe } from "./FileViewerPhotoSwipe";
import { FileViewerPhotoSwipe } from "./photoswipe";
export interface FileViewerProps {
/**

View File

@@ -9,7 +9,7 @@ import {
} from "@/gallery/services/download";
import type { EnteFile } from "@/media/file";
import { FileType } from "@/media/file-type";
import type { FileViewerProps } from "./FileViewer5";
import type { FileViewerProps } from "./FileViewer";
// import { renderToString } from "react-dom/server";

View File

@@ -13,7 +13,9 @@ import { aboveFileViewerContentZ } from "./utils/z-index";
import dynamic from "next/dynamic";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const FV5 = dynamic(() => import("./FileViewer5"), { ssr: false });
const FV5 = dynamic(() => import("@/gallery/components/viewer/FileViewer"), {
ssr: false,
});
const FVD = () => <></>;
export const FileViewer: React.FC = (props) => {