This commit is contained in:
Manav Rathi
2024-09-12 13:47:12 +05:30
parent 2cd2aee11c
commit a9537e59cf
4 changed files with 9 additions and 11 deletions

View File

@@ -1,9 +1,9 @@
import downloadManager from "@/new/photos/services/download";
import { EnteFile } from "@/new/photos/types/file";
import {
LoadingThumbnail,
StaticThumbnail,
} from "@/new/photos/components/PlaceholderThumbnails";
import downloadManager from "@/new/photos/services/download";
import { EnteFile } from "@/new/photos/types/file";
import { useEffect, useState } from "react";
/** See also: {@link ItemCard}. */

View File

@@ -1,5 +1,9 @@
import log from "@/base/log";
import { FileType } from "@/media/file-type";
import {
LoadingThumbnail,
StaticThumbnail,
} from "@/new/photos/components/PlaceholderThumbnails";
import DownloadManager from "@/new/photos/services/download";
import { EnteFile } from "@/new/photos/types/file";
import { Overlay } from "@ente/shared/components/Container";
@@ -12,10 +16,6 @@ import {
GAP_BTW_TILES,
IMAGE_CONTAINER_MAX_WIDTH,
} from "components/PhotoList/constants";
import {
LoadingThumbnail,
StaticThumbnail,
} from "@/new/photos/components/PlaceholderThumbnails";
import i18n from "i18next";
import { DeduplicateContext } from "pages/deduplicate";
import { GalleryContext } from "pages/gallery";

View File

@@ -3,6 +3,7 @@ import { Overlay } from "@ente/shared/components/Container";
import PhotoOutlined from "@mui/icons-material/PhotoOutlined";
import PlayCircleOutlineOutlined from "@mui/icons-material/PlayCircleOutlineOutlined";
import { styled } from "@mui/material";
import React from "react";
interface Iprops {
fileType: FileType;
@@ -14,7 +15,7 @@ const CenteredOverlay = styled(Overlay)`
align-items: center;
`;
export const StaticThumbnail = (props: Iprops) => {
export const StaticThumbnail: React.FC<Iprops> = (props) => {
return (
<CenteredOverlay
sx={(theme) => ({

View File

@@ -8,10 +8,7 @@ type Iprops = React.PropsWithChildren<{
code: string | null;
}>;
export default function CodeBlock({
code,
...props
}: BoxProps<"div", Iprops>) {
export default function CodeBlock({ code, ...props }: BoxProps<"div", Iprops>) {
if (!code) {
return (
<Wrapper>