Remove duplicate files
This commit is contained in:
parent
5edca461f7
commit
9127c48787
2 changed files with 0 additions and 61 deletions
|
@ -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 (
|
||||
<OverflowMenu
|
||||
triggerButtonProps={{
|
||||
sx: {
|
||||
ml: 1,
|
||||
},
|
||||
}}
|
||||
ariaControls={"export-option"}
|
||||
triggerButtonIcon={<MoreHoriz />}
|
||||
>
|
||||
<OverflowMenuOption
|
||||
onClick={changeDirectory}
|
||||
startIcon={<FolderIcon />}
|
||||
>
|
||||
{t("CHANGE_FOLDER")}
|
||||
</OverflowMenuOption>
|
||||
</OverflowMenu>
|
||||
);
|
||||
}
|
|
@ -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 (
|
||||
<DirectoryPathContainer width={width} onClick={handleClick}>
|
||||
<Tooltip title={path}>
|
||||
<span>{path}</span>
|
||||
</Tooltip>
|
||||
</DirectoryPathContainer>
|
||||
);
|
||||
};
|
Loading…
Add table
Reference in a new issue