Add typescript config, move to v1 dir

This commit is contained in:
Alex Holliday committed 2025-09-25 10:11:41 -07:00
1 parent 879cbb8886
commit 4d89213e1c
187 files changed
+708 -637

No files matched your search

@@ -1,38 +0,0 @@
import { Button, Box } from "@mui/material";
import ProgressUpload from "../../../../../Components/ProgressBars";
import ImageIcon from "@mui/icons-material/Image";
import { useTranslation } from "react-i18next";
import { formatBytes } from "../../../../../Utils/fileUtils";
const Progress = ({ isLoading, progressValue, logo, logoType, removeLogo, errors }) => {
const { t } = useTranslation();
if (isLoading) {
return (
<ProgressUpload
icon={<ImageIcon />}
label={logo?.name}
size={formatBytes(logo?.size)}
progress={progressValue}
onClick={removeLogo}
/>
);
}
if (logo && logoType) {
return (
<Box
width="fit-content"
alignSelf="center"
>
<Button
variant="contained"
color="secondary"
onClick={removeLogo}
>
{t("removeLogo")}
</Button>
</Box>
);
}
};
export default Progress;