refactor: removed constant sizes

This commit is contained in:
2025-08-14 12:15:09 +04:00
parent b6cec9a308
commit 255a39e2bb
14 changed files with 109 additions and 121 deletions

View File

@ -8,14 +8,9 @@ import styles from "./../ProjectsEditorDrawer.module.css";
type Props = {
project: ProjectSchema;
startEditing: () => void;
menuIconSize: number;
};
const ProjectMenu: FC<Props> = ({
project,
startEditing,
menuIconSize = 16,
}) => {
const ProjectMenu: FC<Props> = ({ project, startEditing }) => {
const { onDeleteProject } = useProjectsContext();
return (
@ -24,7 +19,7 @@ const ProjectMenu: FC<Props> = ({
<Box
className={styles["menu-button"]}
onClick={e => e.stopPropagation()}>
<IconDotsVertical size={menuIconSize} />
<IconDotsVertical />
</Box>
</Menu.Target>
<Menu.Dropdown>

View File

@ -46,7 +46,6 @@ const ProjectMobile: FC<Props> = ({ project }) => {
<ProjectMenu
project={project}
startEditing={startEditing}
menuIconSize={22}
/>
</Group>
);