diff --git a/bro.config.js b/bro.config.js index 4ab3829..e471644 100644 --- a/bro.config.js +++ b/bro.config.js @@ -21,7 +21,16 @@ module.exports = { features: { 'dry-wash': { // 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: { diff --git a/src/__data__/features.ts b/src/__data__/features.ts index 4366694..48ca7d2 100644 --- a/src/__data__/features.ts +++ b/src/__data__/features.ts @@ -11,5 +11,8 @@ export const FEATURE = { return interval; } } + }, + carImageUpload: { + isOn: Boolean(features?.['car-img-upload']) } }; \ No newline at end of file diff --git a/src/pages/__tests__/__snapshots__/order-view.test.tsx.snap b/src/pages/__tests__/__snapshots__/order-view.test.tsx.snap index 72a1240..d8b0173 100644 --- a/src/pages/__tests__/__snapshots__/order-view.test.tsx.snap +++ b/src/pages/__tests__/__snapshots__/order-view.test.tsx.snap @@ -110,55 +110,6 @@ exports[`Страница просмотра заказа отображает С вами свяжется оператор насчет оплаты по указанному номеру телефона -
-
- -
- - - -
-
- Допустимые форматы: .jpg, .png. Максимальный размер: 5МБ -
-
-
diff --git a/src/pages/order-view/index.tsx b/src/pages/order-view/index.tsx index 9d278aa..1551a74 100644 --- a/src/pages/order-view/index.tsx +++ b/src/pages/order-view/index.tsx @@ -83,7 +83,7 @@ const Page: FC = () => { endWashTime={order.endWashTime} created={order.created} /> - + {FEATURE.carImageUpload.isOn && } )}