fix edit image button
This commit is contained in:
parent
45dddd888d
commit
d4a3025eda
@ -1,5 +1,5 @@
|
||||
import Plus from "@icons/questionsPage/plus";
|
||||
import { Box, ButtonBase, SxProps, Theme } from "@mui/material";
|
||||
import { Box, Button, SxProps, Theme } from "@mui/material";
|
||||
import Image from "../assets/icons/questionsPage/image";
|
||||
|
||||
|
||||
@ -22,9 +22,11 @@ export default function AddOrEditImageButton({ onImageClick, onPlusClick, sx, im
|
||||
overflow: "hidden",
|
||||
...sx,
|
||||
}}>
|
||||
<ButtonBase
|
||||
<Button
|
||||
onClick={onImageClick}
|
||||
sx={{
|
||||
p: 0,
|
||||
minWidth: "40px",
|
||||
flexGrow: 1,
|
||||
backgroundColor: "#EEE4FC",
|
||||
}}>
|
||||
@ -45,15 +47,17 @@ export default function AddOrEditImageButton({ onImageClick, onPlusClick, sx, im
|
||||
width: "100%",
|
||||
}} />
|
||||
)}
|
||||
</ButtonBase>
|
||||
<ButtonBase
|
||||
</Button>
|
||||
<Button
|
||||
onClick={onPlusClick}
|
||||
sx={{
|
||||
p: 0,
|
||||
minWidth: "20px",
|
||||
width: "20px",
|
||||
}}
|
||||
>
|
||||
<Plus />
|
||||
</ButtonBase>
|
||||
</Button>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user