Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove duplicate

Manav Rathid7f96863b265
diff --git a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx b/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx
deleted file mode 100644
index 112791cb6e..0000000000
--- a/web/apps/photos/src/components/Collections/CollectionShare/publicShare/switch.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-import { Switch, styled, type SwitchProps } from "@mui/material";
-const PublicShareSwitch = styled((props: SwitchProps) => (
- <Switch
- focusVisibleClassName=".Mui-focusVisible"
- disableRipple
- {...props}
- />
-))(({ theme }) => ({
- width: 40,
- height: 24,
- padding: 0,
- "& .MuiSwitch-switchBase": {
- padding: 0,
- margin: 2,
- transitionDuration: "300ms",
- "&.Mui-checked": {
- transform: "translateX(16px)",
- color: "#fff",
- "& + .MuiSwitch-track": {
- backgroundColor:
- theme.palette.mode === "dark" ? "#2ECA45" : "#65C466",
- opacity: 1,
- border: 0,
- },
- "&.Mui-disabled + .MuiSwitch-track": {
- opacity: 0.5,
- },
- },
- "&.Mui-focusVisible .MuiSwitch-thumb": {
- color: "#33cf4d",
- border: "6px solid #fff",
- },
- "&.Mui-disabled .MuiSwitch-thumb": {
- color:
- theme.palette.mode === "light"
- ? theme.palette.grey[100]
- : theme.palette.grey[600],
- },
- "&.Mui-disabled + .MuiSwitch-track": {
- opacity: theme.palette.mode === "light" ? 0.7 : 0.3,
- },
- },
- "& .MuiSwitch-thumb": {
- boxSizing: "border-box",
- width: 20,
- height: 20,
- },
- "& .MuiSwitch-track": {
- borderRadius: 22 / 2,
- backgroundColor:
- theme.palette.mode === "light"
- ? "#E9E9EA"
- : theme.colors.fill.muted,
- opacity: 1,
- transition: theme.transitions.create(["background-color"], {
- duration: 500,
- }),
- },
-}));
-
-export default PublicShareSwitch;