π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Last one
Manav Rathibcc0403eb6c5
diff --git a/web/apps/accounts/src/pages/passkeys/index.tsx b/web/apps/accounts/src/pages/passkeys/index.tsxindex 671ea54876..f99d9aacaa 100644--- a/web/apps/accounts/src/pages/passkeys/index.tsx+++ b/web/apps/accounts/src/pages/passkeys/index.tsx@@ -5,7 +5,10 @@ import EditIcon from "@mui/icons-material/Edit";import KeyIcon from "@mui/icons-material/Key";import { Box, Paper, Stack, Typography, styled } from "@mui/material";import { EnteLogo } from "ente-base/components/EnteLogo";-import { SidebarDrawer } from "ente-base/components/mui/SidebarDrawer";+import {+ SidebarDrawer,+ SidebarDrawerTitlebar,+} from "ente-base/components/mui/SidebarDrawer";import { NavbarBase } from "ente-base/components/Navbar";import {RowButton,@@ -13,7 +16,6 @@ import {RowButtonGroup,} from "ente-base/components/RowButton";import { SingleInputDialog } from "ente-base/components/SingleInputDialog";-import { Titlebar } from "ente-base/components/Titlebar";import { errorDialogAttributes } from "ente-base/components/utils/dialog";import { useModalVisibility } from "ente-base/components/utils/modal";import { useBaseContext } from "ente-base/context";@@ -287,7 +289,7 @@ const ManagePasskeyDrawer: React.FC<ManagePasskeyDrawerProps> = ({<SidebarDrawer anchor="right" {...{ open, onClose }}>{token && passkey && (<Stack sx={{ gap: "4px", py: "12px" }}>- <Titlebar+ <SidebarDrawerTitlebaronClose={onClose}title={t("manage_passkey")}onRootClose={onClose}@@ -295,7 +297,7 @@ const ManagePasskeyDrawer: React.FC<ManagePasskeyDrawerProps> = ({<CreatedAtEntry>{formattedDateTime(passkey.createdAt)}</CreatedAtEntry>- <RowButtonGroup>+ <RowButtonGroup sx={{ m: 1 }}><RowButtonstartIcon={<EditIcon />}label={t("rename_passkey")}diff --git a/web/packages/base/components/Titlebar.tsx b/web/packages/base/components/Titlebar.tsxdeleted file mode 100644index 9a1f7cc6ed..0000000000--- a/web/packages/base/components/Titlebar.tsx+++ /dev/null@@ -1,63 +0,0 @@-import ArrowBackIcon from "@mui/icons-material/ArrowBack";-import CloseIcon from "@mui/icons-material/Close";-import { Box, IconButton, Stack, Typography } from "@mui/material";-import { FlexWrapper } from "ente-shared/components/Container";-import React from "react";--interface TitlebarProps {- title: string;- caption?: string;- onClose: () => void;- backIsClose?: boolean;- onRootClose?: () => void;- actionButton?: React.JSX.Element;-}--// TODO: Deprecated in favor of SidebarDrawerTitlebarProps where possible (will-// revisit the remaining use cases once those have migrated).-export const Titlebar: React.FC<TitlebarProps> = ({- title,- caption,- onClose,- backIsClose,- actionButton,- onRootClose,-}) => {- return (- <>- <FlexWrapper- height={48}- alignItems={"center"}- justifyContent="space-between"- >- <IconButton- onClick={onClose}- color={backIsClose ? "secondary" : "primary"}- >- {backIsClose ? <CloseIcon /> : <ArrowBackIcon />}- </IconButton>- <Stack direction="row" sx={{ gap: "4px" }}>- {actionButton && actionButton}- {!backIsClose && (- <IconButton onClick={onRootClose} color="secondary">- <CloseIcon />- </IconButton>- )}- </Stack>- </FlexWrapper>- <Box sx={{ py: 0.5, px: 2 }}>- <Typography variant="h3">{title}</Typography>- <Typography- variant="small"- sx={{- color: "text.muted",- wordBreak: "break-all",- minHeight: "17px",- }}- >- {caption}- </Typography>- </Box>- </>- );-};