квадратные картинки
This commit is contained in:
parent
f0bd1091f0
commit
f1c182da4a
@ -244,7 +244,7 @@ export const ContactForm = ({
|
||||
enqueueSnackbar("повторите попытку позже")
|
||||
}
|
||||
|
||||
if ((settings?.cfg.resultInfo.showResultForm === "after" || settings?.cfg.resultInfo.when === "email") && !checkEmptyData({ resultData: resultQuestion })) {
|
||||
if (settings?.cfg.resultInfo.showResultForm === "after" && !checkEmptyData({ resultData: resultQuestion })) {
|
||||
setShowContactForm(false)
|
||||
setShowResultForm(true)
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ console.log(file)
|
||||
|
||||
await sendAnswer({
|
||||
questionId: currentQuestion.id,
|
||||
//@ts-ignore
|
||||
body: `https://storage.yandexcloud.net/squizanswer/${settings.qid}/${currentQuestion.id}/${data.data.fileIDMap[currentQuestion.id]}`,
|
||||
//@ts-ignore
|
||||
qid: settings.qid
|
||||
|
@ -76,7 +76,7 @@ export const Images = ({ currentQuestion }: ImagesProps) => {
|
||||
|
||||
await sendAnswer({
|
||||
questionId: currentQuestion.id,
|
||||
body: `${currentQuestion.content.variants[index].answer} ${currentQuestion.content.variants[index].extendedText}`,
|
||||
body: `${currentQuestion.content.variants[index].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${currentQuestion.content.variants[index].extendedText}"/>`,
|
||||
//@ts-ignore
|
||||
qid: settings.qid
|
||||
})
|
||||
|
@ -96,6 +96,7 @@ export const Variant = ({ currentQuestion }: VariantProps) => {
|
||||
key={variant.id}
|
||||
currentQuestion={currentQuestion}
|
||||
variant={variant}
|
||||
//@ts-ignore
|
||||
answer={answer}
|
||||
index={index}
|
||||
/>
|
||||
@ -105,6 +106,7 @@ export const Variant = ({ currentQuestion }: VariantProps) => {
|
||||
own
|
||||
currentQuestion={currentQuestion}
|
||||
variant={ownVariant.variant}
|
||||
//@ts-ignore
|
||||
answer={answer}
|
||||
index={currentQuestion.content.variants.length + 2}
|
||||
/>
|
||||
|
@ -89,7 +89,7 @@ export const Varimg = ({ currentQuestion }: VarimgProps) => {
|
||||
|
||||
await sendAnswer({
|
||||
questionId: currentQuestion.id,
|
||||
body: `${currentQuestion.content.variants[index].answer} ${currentQuestion.content.variants[index].extendedText}`,
|
||||
body: `${currentQuestion.content.variants[index].answer} <img style="width:100%; max-width:250px; max-height:250px" src="${currentQuestion.content.variants[index].extendedText}"/>`,
|
||||
//@ts-ignore
|
||||
qid: settings.qid
|
||||
})
|
||||
|
@ -34,6 +34,7 @@ export default function LabeledDatePicker({ label, value = moment(), onChange, s
|
||||
</Typography>
|
||||
)}
|
||||
<DatePicker
|
||||
//@ts-ignore
|
||||
value={value._d}
|
||||
onChange={onChange}
|
||||
slots={{
|
||||
|
Loading…
Reference in New Issue
Block a user