feat: add car image feature
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
This commit is contained in:
parent
c83ebf02bc
commit
63d9d069c0
@ -21,7 +21,16 @@ module.exports = {
|
|||||||
features: {
|
features: {
|
||||||
'dry-wash': {
|
'dry-wash': {
|
||||||
// add your features here in the format [featureName]: { value: string }
|
// add your features here in the format [featureName]: { value: string }
|
||||||
'order-view-status-polling': { value: '3000' }
|
"order-view-status-polling": {
|
||||||
|
"on": true,
|
||||||
|
"value": "3000",
|
||||||
|
"key": "order-view-status-polling"
|
||||||
|
},
|
||||||
|
"car-img-upload": {
|
||||||
|
"on": true,
|
||||||
|
"value": "true",
|
||||||
|
"key": "car-img-upload"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config: {
|
config: {
|
||||||
|
@ -11,5 +11,8 @@ export const FEATURE = {
|
|||||||
return interval;
|
return interval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
carImageUpload: {
|
||||||
|
isOn: Boolean(features?.['car-img-upload'])
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -110,55 +110,6 @@ exports[`Страница просмотра заказа отображает
|
|||||||
</span>
|
</span>
|
||||||
С вами свяжется оператор насчет оплаты по указанному номеру телефона
|
С вами свяжется оператор насчет оплаты по указанному номеру телефона
|
||||||
</div>
|
</div>
|
||||||
<form>
|
|
||||||
<div
|
|
||||||
class="chakra-form-control css-1kxonj9"
|
|
||||||
role="group"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="chakra-form__label css-g6pte"
|
|
||||||
for="carImg"
|
|
||||||
id="field-:r0:-label"
|
|
||||||
>
|
|
||||||
Загрузите фото вашего автомобиля, и наш сервис быстро рассчитает предварительную стоимость заказа!
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
class="chakra-stack css-1hohgv6"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
accept=".jpg,.png"
|
|
||||||
aria-describedby="field-:r0:-helptext"
|
|
||||||
class="chakra-input css-1cjy4zv"
|
|
||||||
hidden=""
|
|
||||||
id="field-:r0:"
|
|
||||||
name="carImg"
|
|
||||||
type="file"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
aria-describedby="field-:r0:-helptext"
|
|
||||||
aria-readonly="true"
|
|
||||||
class="chakra-input css-1oewt32"
|
|
||||||
id="field-:r0:"
|
|
||||||
placeholder="Загрузите файл"
|
|
||||||
readonly=""
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
<button
|
|
||||||
class="chakra-button css-fkfo5c"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Загрузить
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="chakra-form__helper-text css-186pyma"
|
|
||||||
id="field-:r0:-helptext"
|
|
||||||
>
|
|
||||||
Допустимые форматы: .jpg, .png. Максимальный размер: 5МБ
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,7 +83,7 @@ const Page: FC = () => {
|
|||||||
endWashTime={order.endWashTime}
|
endWashTime={order.endWashTime}
|
||||||
created={order.created}
|
created={order.created}
|
||||||
/>
|
/>
|
||||||
<CarImageForm orderId={orderId} />
|
{FEATURE.carImageUpload.isOn && <CarImageForm orderId={orderId} />}
|
||||||
</VStack>
|
</VStack>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user