текст загрузки изображения у own varimg
This commit is contained in:
parent
ac82e688c5
commit
55379afd61
@ -215,7 +215,33 @@ export const Varimg = ({ currentQuestion }: VarimgProps) => {
|
||||
</>
|
||||
);
|
||||
}
|
||||
return <BlankImage />;
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
position: "relative",
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<BlankImage />
|
||||
{variant?.isOwn && (
|
||||
<Box
|
||||
sx={{
|
||||
position: "absolute",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
zIndex: 1,
|
||||
}}
|
||||
>
|
||||
{t("Add your image")}
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
if (choiceImgUrlQuestion && choiceImgUrlQuestion.trim().length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user