diff --git a/web/packages/shared/components/Directory/changeOption.tsx b/web/packages/shared/components/Directory/changeOption.tsx deleted file mode 100644 index f846e9ba9..000000000 --- a/web/packages/shared/components/Directory/changeOption.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import OverflowMenu from "@ente/shared/components/OverflowMenu/menu"; -import { OverflowMenuOption } from "@ente/shared/components/OverflowMenu/option"; -import FolderIcon from "@mui/icons-material/Folder"; -import MoreHoriz from "@mui/icons-material/MoreHoriz"; -import { t } from "i18next"; - -export default function ChangeDirectoryOption({ - changeExportDirectory: changeDirectory, -}) { - return ( - } - > - } - > - {t("CHANGE_FOLDER")} - - - ); -} diff --git a/web/packages/shared/components/Directory/index.tsx b/web/packages/shared/components/Directory/index.tsx deleted file mode 100644 index 1ad4d682e..000000000 --- a/web/packages/shared/components/Directory/index.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import ElectronAPIs from "@/next/electron"; -import LinkButton from "@ente/shared/components/LinkButton"; -import { Tooltip } from "@mui/material"; -import { styled } from "@mui/material/styles"; - -const DirectoryPathContainer = styled(LinkButton)( - ({ width }) => ` - width: ${width}px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - /* Beginning of string */ - direction: rtl; - text-align: left; -`, -); - -export const DirectoryPath = ({ width, path }) => { - const handleClick = async () => { - try { - await ElectronAPIs.openDirectory(path); - } catch (e) { - log.error("openDirectory failed", e); - } - }; - return ( - - - {path} - - - ); -};