Move
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { MenuItemDivider, MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import log from "@/next/log";
|
||||
import { ensure } from "@/utils/ensure";
|
||||
import { CenteredFlex } from "@ente/shared/components/Container";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { DialogProps, Stack } from "@mui/material";
|
||||
import { EnteDrawer } from "components/EnteDrawer";
|
||||
import { t } from "i18next";
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
MenuItemGroup,
|
||||
MenuSectionTitle,
|
||||
} from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import Add from "@mui/icons-material/Add";
|
||||
import AdminPanelSettingsIcon from "@mui/icons-material/AdminPanelSettings";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MenuItemDivider, MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import log from "@/next/log";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import BlockIcon from "@mui/icons-material/Block";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { DialogProps, Stack } from "@mui/material";
|
||||
import { EnteDrawer } from "components/EnteDrawer";
|
||||
import { CollectionSummaryType } from "constants/collection";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MenuItemDivider, MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import ChevronRight from "@mui/icons-material/ChevronRight";
|
||||
import { DialogProps, Stack } from "@mui/material";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MenuItemDivider, MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
||||
import RemoveCircleOutline from "@mui/icons-material/RemoveCircleOutline";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MenuItemDivider, MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import { formatDateTime } from "@ente/shared/time/format";
|
||||
import ChevronRight from "@mui/icons-material/ChevronRight";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import CopyButton from "@ente/shared/components/CodeBlock/CopyButton";
|
||||
import { formatDateTimeFull } from "@ente/shared/time/format";
|
||||
import { Box, Stack, styled, Typography } from "@mui/material";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { UnidentifiedFaces } from "@/new/photos/components/PeopleList";
|
||||
import { isMLEnabled } from "@/new/photos/services/ml";
|
||||
import { EnteFile } from "@/new/photos/types/file";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import CopyButton from "@ente/shared/components/CodeBlock/CopyButton";
|
||||
import { FlexWrapper } from "@ente/shared/components/Container";
|
||||
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MenuItemGroup, MenuSectionTitle } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import ChevronRight from "@mui/icons-material/ChevronRight";
|
||||
import ScienceIcon from "@mui/icons-material/Science";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import log from "@/next/log";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import {
|
||||
getLocaleInUse,
|
||||
setLocaleInUse,
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
isMLEnabled,
|
||||
} from "@/new/photos/services/ml";
|
||||
import { MenuItemGroup } from "@/new/shared/components/Menu";
|
||||
import Titlebar from "@/new/shared/components/Titlebar";
|
||||
import { Titlebar } from "@/new/shared/components/Titlebar";
|
||||
import log from "@/next/log";
|
||||
import { EnteMenuItem } from "@ente/shared/components/Menu/EnteMenuItem";
|
||||
import {
|
||||
|
||||
@@ -2,8 +2,9 @@ import { FlexWrapper } from "@ente/shared/components/Container";
|
||||
import ArrowBack from "@mui/icons-material/ArrowBack";
|
||||
import Close from "@mui/icons-material/Close";
|
||||
import { Box, IconButton, Typography } from "@mui/material";
|
||||
import React from "react";
|
||||
|
||||
interface Iprops {
|
||||
interface TitlebarProps {
|
||||
title: string;
|
||||
caption?: string;
|
||||
onClose: () => void;
|
||||
@@ -12,14 +13,14 @@ interface Iprops {
|
||||
actionButton?: JSX.Element;
|
||||
}
|
||||
|
||||
export default function Titlebar({
|
||||
export const Titlebar: React.FC<TitlebarProps> = ({
|
||||
title,
|
||||
caption,
|
||||
onClose,
|
||||
backIsClose,
|
||||
actionButton,
|
||||
onRootClose,
|
||||
}: Iprops): JSX.Element {
|
||||
}) => {
|
||||
return (
|
||||
<>
|
||||
<FlexWrapper
|
||||
@@ -56,4 +57,4 @@ export default function Titlebar({
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user