Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Shorten

Manav Rathif52420df201d
diff --git a/web/packages/base/components/Titlebar.tsx b/web/packages/base/components/Titlebar.tsx
index e0bc6e6ff5..1029dff467 100644
--- a/web/packages/base/components/Titlebar.tsx
+++ b/web/packages/base/components/Titlebar.tsx
@@ -13,7 +13,7 @@ interface TitlebarProps {
actionButton?: JSX.Element;
}
-// TODO: Deprecated in favor of NestedSidebarDrawerTitlebar where possible (will
+// 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,
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index 220d0a8b23..a6569f01dd 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -81,7 +81,7 @@ import Close from "@mui/icons-material/Close";
import { Box, IconButton, Typography } from "@mui/material";
import React from "react";
-type NestedSidebarDrawerTitlebarProps = Pick<
+type SidebarDrawerTitlebarProps = Pick<
NestedSidebarDrawerVisibilityProps,
"onClose" | "onRootClose"
> & {
@@ -98,11 +98,15 @@ type NestedSidebarDrawerTitlebarProps = Pick<
/**
* A bar with a title and back / close buttons, suitable for being used in
- * tandem with a {@link SidebarDrawer}.
+ * tandem with a {@link NestedSidebarDrawer}.
*/
-export const NestedSidebarDrawerTitlebar: React.FC<
- NestedSidebarDrawerTitlebarProps
-> = ({ title, caption, onClose, onRootClose, actionButton }) => {
+export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({
+ title,
+ caption,
+ onClose,
+ onRootClose,
+ actionButton,
+}) => {
return (
<>
<FlexWrapper